-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Trey2k/dev
Dev
- Loading branch information
Showing
71 changed files
with
26,867 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
Import('env') | ||
#!/usr/bin/env python | ||
|
||
env_lua = env.Clone() | ||
env_lua.add_source_files(env.modules_sources, "*.cpp") #this will add all the cpp files | ||
env_lua.Append(CPPPATH=["#modules/lua/luasrc/include"]) | ||
Import("env") | ||
Import('env_modules') | ||
|
||
if env['platform'] == "x11": | ||
env.Append(LIBPATH=['#modules/lua/luasrc/libs/linux']) | ||
elif env['platform'] == "windows": | ||
env.Append(LIBPATH=['#modules/lua/luasrc/libs/windows']) | ||
elif env['platform'] == "osx": | ||
env.Append(LIBPATH=['#modules/lua/luasrc/libs/macos']) | ||
env_lua = env_modules.Clone() | ||
|
||
if not env.msvc: | ||
env.Append(LIBS=['liblua']) | ||
CXXFLAGS='-std=c++17' | ||
else: | ||
CXXFLAGS='/std:c++17' | ||
|
||
env_lua['CXXFLAGS'] = [CXXFLAGS] | ||
|
||
Export('env_lua') | ||
|
||
SConscript('luasrc/SCsub') | ||
|
||
env_lua.add_source_files(env.modules_sources,'*.cpp') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python | ||
|
||
Import('env') | ||
Import('env_lua') | ||
|
||
env_lua = env_lua.Clone() | ||
|
||
if env_lua['PLATFORM'] == 'posix': | ||
env_lua.Append(CPPDEFINES='LUA_USE_POSIX') | ||
|
||
if not env.msvc: | ||
env_lua['CFLAGS'].remove('-std=gnu11') | ||
env_lua.Append(CFLAGS=['-std=c99']) | ||
|
||
env_lua.add_source_files(env.modules_sources,'*.c') |
Oops, something went wrong.