Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MINT
godot-addons
gdpd
Commits
a5f28c51
Commit
a5f28c51
authored
May 09, 2020
by
BERTHAUT Florent
Browse files
Fixed compile flags for osx
parent
97859082
Changes
1
Hide whitespace changes
Inline
Side-by-side
SConstruct
View file @
a5f28c51
...
...
@@ -50,13 +50,13 @@ if env['platform'] == "osx":
env
[
'target_path'
]
+=
'osx/'
cpp_library
+=
'.osx'
env
.
Append
(
CPPDEFINES
=
[
'__MACOSX_CORE__'
])
env
.
Append
(
CXXFLAGS
=
[
'-std=c++17'
,
'-framework CoreAudio'
,
'-framework CoreFoundation'
])
env
.
Append
(
CXXFLAGS
=
[
'-std=c++17'
])
env
.
Append
(
LINKFLAGS
=
[
'-arch'
,
'x86_64'
,
'-framework'
,
'CoreAudio'
,
'-framework'
,
'CoreFoundation'
])
if
env
[
'target'
]
in
(
'debug'
,
'd'
):
env
.
Append
(
CCFLAGS
=
[
'-g'
,
'-O2'
,
'-arch'
,
'x86_64'
])
env
.
Append
(
LINKFLAGS
=
[
'-arch'
,
'x86_64'
])
else
:
env
.
Append
(
CCFLAGS
=
[
'-g'
,
'-O3'
,
'-arch'
,
'x86_64'
])
env
.
Append
(
LINKFLAGS
=
[
'-arch'
,
'x86_64'
])
elif
env
[
'platform'
]
in
(
'x11'
,
'linux'
):
env
[
'target_path'
]
+=
'x11/'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment