Skip to content

Commit 1f36c23

Browse files
committed
Getting this to compile on mac os x
1 parent ba32738 commit 1f36c23

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.c eol=lf
2+
*.cpp eol=lf
3+
*.gd eol=lf
4+
*.tscn eol=lf
5+
*.cfg eol=lf
6+
*.godot eol=lf

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ include/*.hpp
66
*.obj
77
*.pyc
88
*.json
9+
*.dblite
910
bin

SConstruct

+6
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ def add_sources(sources, directory):
2828
sources.append(directory + '/' + file)
2929

3030

31+
if platform == "osx":
32+
env.Append(CCFLAGS = ['-g','-O3', '-std=c++14', '-arch', 'x86_64'])
33+
env.Append(LINKFLAGS = ['-arch', 'x86_64', '-framework', 'Cocoa', '-Wl,-undefined,dynamic_lookup'])
34+
3135
if target == "core":
3236
if platform == "linux":
3337
env.Append(CCFLAGS = ['-g','-O3', '-std=c++14'])
3438

39+
3540
env.Append(CPPPATH=['include/core', godot_headers_path])
3641

3742
if platform == "windows":
@@ -79,6 +84,7 @@ elif target == "bindings":
7984

8085
env.Append(CCFLAGS = ['-g','-O3', '-std=c++14'])
8186
env.Append(LINKFLAGS = ['-Wl,-R,\'$$ORIGIN\''])
87+
8288
env.Append(CPPPATH=['.', godot_headers_path, 'include', 'include/core'])
8389

8490
if platform == "windows":

0 commit comments

Comments
 (0)