12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
-
-
-
-
- import pioutil
- if pioutil.is_pio_build():
-
- Import("env")
-
-
-
-
-
-
-
- env['PROGNAME'] = "MarlinSimulator"
-
-
-
-
-
-
- import sys
- if sys.platform == 'darwin':
-
-
-
-
- env['RANLIBFLAGS'] += [ "-no_warning_for_no_symbols" ]
-
-
- xcode_path = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
- mesa_path = "/opt/local/include/GL/gl.h"
-
- import os.path
-
- if os.path.exists(xcode_path):
-
- env['BUILD_FLAGS'] += [ "-F" + xcode_path ]
- print("Using OpenGL framework headers from Xcode.app")
-
- elif os.path.exists(mesa_path):
-
- env['BUILD_FLAGS'] += [ '-D__MESA__' ]
- print("Using OpenGL header from", mesa_path)
-
- else:
-
- print("\n\nNo OpenGL headers found. Install Xcode for matching headers, or use 'sudo port install mesa' to get a GL/gl.h.\n\n")
-
-
- sys.exit(1)
|