|
@@ -24,6 +24,7 @@ result_name = ARGUMENTS.get('n', ARGUMENTS.get('name', os.path.relpath('.', '..'
|
|
if target_platform == 'linux':
|
|
if target_platform == 'linux':
|
|
result_name += '.linux.' + target_arch
|
|
result_name += '.linux.' + target_arch
|
|
|
|
|
|
|
|
+ env['CXX']='g++'
|
|
if ARGUMENTS.get('use_llvm', 'no') == 'yes':
|
|
if ARGUMENTS.get('use_llvm', 'no') == 'yes':
|
|
env['CXX'] = 'clang++'
|
|
env['CXX'] = 'clang++'
|
|
|
|
|
|
@@ -86,10 +87,13 @@ env.Append(CPPPATH=['.', godot_headers, 'include', 'include/gen', 'include/core'
|
|
# Generate bindings?
|
|
# Generate bindings?
|
|
json_api_file = ''
|
|
json_api_file = ''
|
|
|
|
|
|
|
|
+# Generate bindings?
|
|
|
|
+json_api_file = ''
|
|
|
|
+
|
|
if ARGUMENTS.get('use_custom_api_file', 'no') == 'yes':
|
|
if ARGUMENTS.get('use_custom_api_file', 'no') == 'yes':
|
|
json_api_file = ARGUMENTS.get('custom_api_file', '')
|
|
json_api_file = ARGUMENTS.get('custom_api_file', '')
|
|
else:
|
|
else:
|
|
- json_api_file = os.path.join(os.getcwd(), 'godot_api.json')
|
|
|
|
|
|
+ json_api_file = os.path.join(os.getcwd(), 'godot_headers', 'api.json')
|
|
|
|
|
|
if ARGUMENTS.get('generate_bindings', 'no') == 'yes':
|
|
if ARGUMENTS.get('generate_bindings', 'no') == 'yes':
|
|
# actually create the bindings here
|
|
# actually create the bindings here
|
|
@@ -98,6 +102,8 @@ if ARGUMENTS.get('generate_bindings', 'no') == 'yes':
|
|
|
|
|
|
binding_generator.generate_bindings(json_api_file)
|
|
binding_generator.generate_bindings(json_api_file)
|
|
|
|
|
|
|
|
+
|
|
|
|
+# source to compile
|
|
sources = []
|
|
sources = []
|
|
add_sources(sources, 'src/core', 'cpp')
|
|
add_sources(sources, 'src/core', 'cpp')
|
|
add_sources(sources, 'src/gen', 'cpp')
|
|
add_sources(sources, 'src/gen', 'cpp')
|