-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 458634c
Showing
26 changed files
with
14,613 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = crlf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
Empty file.
Binary file not shown.
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,289 @@ | ||
-- This premake script should be used with orx-customized version of premake4. | ||
-- Its Hg repository can be found at https://bitbucket.org/orx/premake-stable. | ||
-- A copy, including binaries, can also be found in the extern/premake folder. | ||
|
||
-- | ||
-- Globals | ||
-- | ||
|
||
function initconfigurations () | ||
return | ||
{ | ||
"Debug", | ||
"Profile", | ||
"Release" | ||
} | ||
end | ||
|
||
function initplatforms () | ||
if os.is ("windows") | ||
or os.is ("linux") then | ||
if os.is64bit () then | ||
return | ||
{ | ||
"x64", | ||
"x32" | ||
} | ||
else | ||
return | ||
{ | ||
"x32", | ||
"x64" | ||
} | ||
end | ||
elseif os.is ("macosx") then | ||
return | ||
{ | ||
"x64" | ||
} | ||
end | ||
end | ||
|
||
function defaultaction (name, action) | ||
if os.is (name) then | ||
_ACTION = _ACTION or action | ||
end | ||
end | ||
|
||
defaultaction ("windows", "vs2019") | ||
defaultaction ("linux", "gmake") | ||
defaultaction ("macosx", "gmake") | ||
|
||
newoption | ||
{ | ||
trigger = "to", | ||
value = "path", | ||
description = "Set the output location for the generated files" | ||
} | ||
|
||
if os.is ("macosx") then | ||
osname = "mac" | ||
else | ||
osname = os.get() | ||
end | ||
|
||
destination = _OPTIONS["to"] or "./" .. osname .. "/" .. _ACTION | ||
copybase = path.rebase ("..", os.getcwd (), os.getcwd () .. "/" .. destination) | ||
|
||
|
||
-- | ||
-- Solution: ggj2021 | ||
-- | ||
|
||
solution "ggj2021" | ||
|
||
language ("C++") | ||
|
||
location (destination) | ||
|
||
kind ("ConsoleApp") | ||
|
||
configurations | ||
{ | ||
initconfigurations () | ||
} | ||
|
||
platforms | ||
{ | ||
initplatforms () | ||
} | ||
|
||
targetdir ("../bin") | ||
|
||
flags | ||
{ | ||
"NoPCH", | ||
"NoManifest", | ||
"FloatFast", | ||
"NoNativeWChar", | ||
"NoExceptions", | ||
"NoIncrementalLink", | ||
"NoEditAndContinue", | ||
"NoMinimalRebuild", | ||
"Symbols", | ||
"StaticRuntime" | ||
} | ||
|
||
configuration {"not xcode*"} | ||
includedirs {"$(ORX)/include"} | ||
libdirs {"$(ORX)/lib/dynamic"} | ||
|
||
configuration {"xcode*"} | ||
includedirs {"../include"} | ||
libdirs {"../lib/dynamic"} | ||
|
||
configuration {"not vs2015", "not vs2017", "not vs2019"} | ||
flags {"EnableSSE2"} | ||
|
||
configuration {"not x64"} | ||
flags {"EnableSSE2"} | ||
|
||
configuration {"not windows"} | ||
flags {"Unicode"} | ||
|
||
configuration {"*Debug*"} | ||
targetsuffix ("d") | ||
defines {"__orxDEBUG__"} | ||
links {"orxd"} | ||
|
||
configuration {"*Profile*"} | ||
targetsuffix ("p") | ||
defines {"__orxPROFILER__"} | ||
flags {"Optimize", "NoRTTI"} | ||
links {"orxp"} | ||
|
||
configuration {"*Release*"} | ||
flags {"Optimize", "NoRTTI"} | ||
links {"orx"} | ||
|
||
configuration {"windows", "*Release*"} | ||
kind ("WindowedApp") | ||
|
||
|
||
-- Linux | ||
|
||
configuration {"linux"} | ||
buildoptions {"-Wno-unused-function"} | ||
linkoptions {"-Wl,-rpath ./", "-Wl,--export-dynamic"} | ||
links | ||
{ | ||
"dl", | ||
"m", | ||
"rt" | ||
} | ||
|
||
-- This prevents an optimization bug from happening with some versions of gcc on linux | ||
configuration {"linux", "not *Debug*"} | ||
buildoptions {"-fschedule-insns"} | ||
|
||
|
||
-- Mac OS X | ||
|
||
configuration {"macosx"} | ||
buildoptions | ||
{ | ||
"-mmacosx-version-min=10.9", | ||
"-stdlib=libc++", | ||
"-gdwarf-2", | ||
"-Wno-write-strings" | ||
} | ||
linkoptions | ||
{ | ||
"-mmacosx-version-min=10.9", | ||
"-stdlib=libc++", | ||
"-dead_strip" | ||
} | ||
|
||
configuration {"macosx", "not codelite", "not codeblocks"} | ||
links | ||
{ | ||
"Foundation.framework", | ||
"AppKit.framework" | ||
} | ||
|
||
configuration {"macosx", "codelite or codeblocks"} | ||
linkoptions | ||
{ | ||
"-framework Foundation", | ||
"-framework AppKit" | ||
} | ||
|
||
configuration {"macosx", "x32"} | ||
buildoptions | ||
{ | ||
"-mfix-and-continue" | ||
} | ||
|
||
|
||
-- Windows | ||
|
||
configuration {"windows", "vs*"} | ||
buildoptions | ||
{ | ||
"/MP", | ||
"/EHsc" | ||
} | ||
|
||
configuration {"windows", "gmake", "x32"} | ||
prebuildcommands | ||
{ | ||
"$(eval CC := i686-w64-mingw32-gcc)", | ||
"$(eval CXX := i686-w64-mingw32-g++)", | ||
"$(eval AR := i686-w64-mingw32-gcc-ar)" | ||
} | ||
|
||
configuration {"windows", "gmake", "x64"} | ||
prebuildcommands | ||
{ | ||
"$(eval CC := x86_64-w64-mingw32-gcc)", | ||
"$(eval CXX := x86_64-w64-mingw32-g++)", | ||
"$(eval AR := x86_64-w64-mingw32-gcc-ar)" | ||
} | ||
|
||
configuration {"windows", "codelite or codeblocks", "x32"} | ||
envs | ||
{ | ||
"CC=i686-w64-mingw32-gcc", | ||
"CXX=i686-w64-mingw32-g++", | ||
"AR=i686-w64-mingw32-gcc-ar" | ||
} | ||
|
||
configuration {"windows", "codelite or codeblocks", "x64"} | ||
envs | ||
{ | ||
"CC=x86_64-w64-mingw32-gcc", | ||
"CXX=x86_64-w64-mingw32-g++", | ||
"AR=x86_64-w64-mingw32-gcc-ar" | ||
} | ||
|
||
|
||
-- | ||
-- Project: ggj2021 | ||
-- | ||
|
||
project "ggj2021" | ||
|
||
files | ||
{ | ||
"../src/**.cpp", | ||
"../src/**.c", | ||
"../include/**.h", | ||
"../include/**.inl", | ||
"../data/config/**.ini" | ||
} | ||
|
||
includedirs | ||
{ | ||
"../include/Scroll", | ||
"../include" | ||
} | ||
|
||
configuration {"windows", "vs*"} | ||
buildoptions {"/EHsc"} | ||
|
||
vpaths | ||
{ | ||
["inline"] = {"**.inl"}, | ||
["config"] = {"**.ini"} | ||
} | ||
|
||
|
||
-- Linux | ||
|
||
configuration {"linux"} | ||
postbuildcommands {"cp -f $(ORX)/lib/dynamic/liborx*.so " .. copybase .. "/bin"} | ||
|
||
|
||
-- Mac OS X | ||
|
||
configuration {"macosx", "xcode*"} | ||
postbuildcommands {"cp -f ../lib/dynamic/liborx*.dylib " .. copybase .. "/bin"} | ||
|
||
configuration {"macosx", "not xcode*"} | ||
postbuildcommands {"cp -f $(ORX)/lib/dynamic/liborx*.dylib " .. copybase .. "/bin"} | ||
|
||
|
||
-- Windows | ||
|
||
configuration {"windows"} | ||
postbuildcommands {"cmd /c copy /Y $(ORX)\\lib\\dynamic\\orx*.dll " .. path.translate(copybase, "\\") .. "\\bin"} |
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,32 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2019 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ggj2021", "ggj2021.vcxproj", "{74C7BE09-AFA7-4040-9682-85EB11E8AF53}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Debug|Win32 = Debug|Win32 | ||
Profile|x64 = Profile|x64 | ||
Profile|Win32 = Profile|Win32 | ||
Release|x64 = Release|x64 | ||
Release|Win32 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Debug|x64.ActiveCfg = Debug|x64 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Debug|x64.Build.0 = Debug|x64 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Debug|Win32.Build.0 = Debug|Win32 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Profile|x64.ActiveCfg = Profile|x64 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Profile|x64.Build.0 = Profile|x64 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Profile|Win32.ActiveCfg = Profile|Win32 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Profile|Win32.Build.0 = Profile|Win32 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Release|x64.ActiveCfg = Release|x64 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Release|x64.Build.0 = Release|x64 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Release|Win32.ActiveCfg = Release|Win32 | ||
{74C7BE09-AFA7-4040-9682-85EB11E8AF53}.Release|Win32.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Oops, something went wrong.