mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 15:48:09 -05:00
a66dbb8136
commita41a442f5a
Author: MishaProductions <106913236+MishaProductions@users.noreply.github.com> Date: Fri Jun 30 08:10:54 2023 +0300 Update .editorconfig Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com> commit5768cf4a0c
Author: Misha <mishakeys20@gmail.com> Date: Fri Jun 30 08:04:37 2023 +0300 add legoutil commit7d6b00c831
Author: Misha <mishakeys20@gmail.com> Date: Fri Jun 30 08:02:17 2023 +0300 Update CMakeLists.txt commitd9b49087f8
Author: Misha <mishakeys20@gmail.com> Date: Fri Jun 30 08:01:06 2023 +0300 Update CMakeLists.txt commitd5a2891965
Author: Misha <mishakeys20@gmail.com> Date: Fri Jun 30 07:59:03 2023 +0300 Update CMakeLists.txt commit519253bff4
Merge:6cefa2e
13df3f9
Author: Misha <mishakeys20@gmail.com> Date: Fri Jun 30 07:57:15 2023 +0300 Merge remote-tracking branch 'upstream/master' into legobackgroundcolor commit6cefa2e9e2
Author: Misha <mishakeys20@gmail.com> Date: Thu Jun 29 16:51:53 2023 +0300 add back stuff to mak file after merge commitc2b16eb8ff
Merge:3c8add2
07912eb
Author: Misha <mishakeys20@gmail.com> Date: Thu Jun 29 16:49:51 2023 +0300 Merge remote-tracking branch 'upstream/master' into legobackgroundcolor commit3c8add2f19
Author: Misha <mishakeys20@gmail.com> Date: Thu Jun 29 13:34:15 2023 +0300 Update legobackgroundcolor.cpp commit6879f30e79
Author: Misha <mishakeys20@gmail.com> Date: Wed Jun 28 18:22:35 2023 +0300 add fixme + rename MxStringVariable functions commita883f37b9d
Author: Misha <mishakeys20@gmail.com> Date: Wed Jun 28 18:15:42 2023 +0300 address review commita919eeb7f4
Author: Misha <mishakeys20@gmail.com> Date: Wed Jun 28 08:19:45 2023 +0300 Update mxbackgroundcolor.cpp commit710c1dd5ea
Author: Misha <mishakeys20@gmail.com> Date: Wed Jun 28 08:11:13 2023 +0300 add back mak file commit25e9bbbfb0
Merge:78b0e8d
2d9af63
Author: Misha <mishakeys20@gmail.com> Date: Wed Jun 28 08:09:03 2023 +0300 Merge remote-tracking branch 'upstream/master' into legobackgroundcolor commit78b0e8dd62
Author: Misha <mishakeys20@gmail.com> Date: Tue Jun 27 18:35:58 2023 +0300 improve accuracy commit4c2e1ca95c
Author: Misha <mishakeys20@gmail.com> Date: Mon Jun 26 13:50:40 2023 +0300 improve accuracy commit7dd3469ca3
Author: Misha <mishakeys20@gmail.com> Date: Mon Jun 26 13:24:11 2023 +0300 ConvertColor wip commitb0288803a8
Merge:3d16867
0b47f3f
Author: MishaProductions <106913236+MishaProductions@users.noreply.github.com> Date: Mon Jun 26 09:42:08 2023 +0300 Merge branch 'isledecomp:master' into legobackgroundcolor commit3d16867a90
Author: Misha <mishakeys20@gmail.com> Date: Sun Jun 25 17:03:14 2023 +0300 90% match commit2208573eb2
Author: Misha <mishakeys20@gmail.com> Date: Sun Jun 25 12:23:47 2023 +0300 improve accuracy + add editorconfig commit288f861428
Author: Misha <mishakeys20@gmail.com> Date: Sun Jun 25 07:57:14 2023 +0300 fix makefile commit3590e59a3a
Author: Misha <mishakeys20@gmail.com> Date: Sun Jun 25 07:51:35 2023 +0300 Update isle.mak commitfb52ad5781
Author: Misha <mishakeys20@gmail.com> Date: Sun Jun 25 07:47:06 2023 +0300 fix build commit791cf1301a
Merge:b9ecd15
64d2b9e
Author: Misha <mishakeys20@gmail.com> Date: Sun Jun 25 07:42:09 2023 +0300 Merge remote-tracking branch 'upstream/master' into legobackgroundcolor commitb9ecd15ca6
Author: Misha <mishakeys20@gmail.com> Date: Sun Jun 25 07:40:22 2023 +0300 undo change commit6327a797bc
Author: Misha <mishakeys20@gmail.com> Date: Sat Jun 24 21:48:08 2023 +0300 delete accidently committed files commit7ae1c05df9
Author: Misha <mishakeys20@gmail.com> Date: Sat Jun 24 21:47:05 2023 +0300 implement SetColorString commit323a2ee0e7
Author: Misha <mishakeys20@gmail.com> Date: Sat Jun 24 20:47:03 2023 +0300 constructor and some methods are matching commit0ce6fab3d0
Author: Misha <mishakeys20@gmail.com> Date: Sat Jun 24 20:38:10 2023 +0300 constructor is almost matching
223 lines
6.3 KiB
CMake
223 lines
6.3 KiB
CMake
cmake_minimum_required(VERSION 2.8...3.5 FATAL_ERROR)
|
|
|
|
project(isle CXX)
|
|
|
|
option(ISLE_BUILD_APP "Build ISLE.EXE application" ON)
|
|
|
|
add_library(lego1 SHARED
|
|
LEGO1/act1state.cpp
|
|
LEGO1/act2brick.cpp
|
|
LEGO1/act2policestation.cpp
|
|
LEGO1/act3.cpp
|
|
LEGO1/act3shark.cpp
|
|
LEGO1/act3state.cpp
|
|
LEGO1/ambulance.cpp
|
|
LEGO1/ambulancemissionstate.cpp
|
|
LEGO1/animstate.cpp
|
|
LEGO1/beachhouseentity.cpp
|
|
LEGO1/bike.cpp
|
|
LEGO1/buildingentity.cpp
|
|
LEGO1/bumpbouy.cpp
|
|
LEGO1/carrace.cpp
|
|
LEGO1/dllmain.cpp
|
|
LEGO1/dunebuggy.cpp
|
|
LEGO1/elevatorbottom.cpp
|
|
LEGO1/gasstation.cpp
|
|
LEGO1/gasstationentity.cpp
|
|
LEGO1/gasstationstate.cpp
|
|
LEGO1/helicopter.cpp
|
|
LEGO1/helicopterstate.cpp
|
|
LEGO1/historybook.cpp
|
|
LEGO1/hospital.cpp
|
|
LEGO1/hospitalentity.cpp
|
|
LEGO1/hospitalstate.cpp
|
|
LEGO1/infocenter.cpp
|
|
LEGO1/infocenterdoor.cpp
|
|
LEGO1/infocenterentity.cpp
|
|
LEGO1/infocenterstate.cpp
|
|
LEGO1/isle.cpp
|
|
LEGO1/isleactor.cpp
|
|
LEGO1/islepathactor.cpp
|
|
LEGO1/jetski.cpp
|
|
LEGO1/jetskirace.cpp
|
|
LEGO1/jukebox.cpp
|
|
LEGO1/jukeboxentity.cpp
|
|
LEGO1/jukeboxstate.cpp
|
|
LEGO1/legoact2state.cpp
|
|
LEGO1/legoactioncontrolpresenter.cpp
|
|
LEGO1/legoanimactor.cpp
|
|
LEGO1/legoanimationmanager.cpp
|
|
LEGO1/legoanimmmpresenter.cpp
|
|
LEGO1/legoanimpresenter.cpp
|
|
LEGO1/legobackgroundcolor.cpp
|
|
LEGO1/legobackgroundcolor.cpp
|
|
LEGO1/legobuildingmanager.cpp
|
|
LEGO1/legocachesound.cpp
|
|
LEGO1/legocameracontroller.cpp
|
|
LEGO1/legocarbuild.cpp
|
|
LEGO1/legocarbuildanimpresenter.cpp
|
|
LEGO1/legocontrolmanager.cpp
|
|
LEGO1/legoentity.cpp
|
|
LEGO1/legoentitypresenter.cpp
|
|
LEGO1/legoflctexturepresenter.cpp
|
|
LEGO1/legogamestate.cpp
|
|
LEGO1/legohideanimpresenter.cpp
|
|
LEGO1/legoinputmanager.cpp
|
|
LEGO1/legojetski.cpp
|
|
LEGO1/legoloadcachesoundpresenter.cpp
|
|
LEGO1/legolocomotionanimpresenter.cpp
|
|
LEGO1/legomodelpresenter.cpp
|
|
LEGO1/legonavcontroller.cpp
|
|
LEGO1/legoomni.cpp
|
|
LEGO1/legopalettepresenter.cpp
|
|
LEGO1/legopartpresenter.cpp
|
|
LEGO1/legopathactor.cpp
|
|
LEGO1/legopathcontroller.cpp
|
|
LEGO1/legopathpresenter.cpp
|
|
LEGO1/legophonemepresenter.cpp
|
|
LEGO1/legoplantmanager.cpp
|
|
LEGO1/legorace.cpp
|
|
LEGO1/legoroi.cpp
|
|
LEGO1/legosoundmanager.cpp
|
|
LEGO1/legostate.cpp
|
|
LEGO1/legotexturepresenter.cpp
|
|
LEGO1/legoutil.cpp
|
|
LEGO1/legovideomanager.cpp
|
|
LEGO1/legoworld.cpp
|
|
LEGO1/legoworldpresenter.cpp
|
|
LEGO1/motorcycle.cpp
|
|
LEGO1/mxatomid.cpp
|
|
LEGO1/mxaudiopresenter.cpp
|
|
LEGO1/mxautolocker.cpp
|
|
LEGO1/mxbackgroundaudiomanager.cpp
|
|
LEGO1/mxbitmap.cpp
|
|
LEGO1/mxcompositemediapresenter.cpp
|
|
LEGO1/mxcompositepresenter.cpp
|
|
LEGO1/mxcontrolpresenter.cpp
|
|
LEGO1/mxcore.cpp
|
|
LEGO1/mxcriticalsection.cpp
|
|
LEGO1/mxdirectdraw.cpp
|
|
LEGO1/mxdiskstreamcontroller.cpp
|
|
LEGO1/mxdiskstreamprovider.cpp
|
|
LEGO1/mxdsaction.cpp
|
|
LEGO1/mxdsanim.cpp
|
|
LEGO1/mxdschunk.cpp
|
|
LEGO1/mxdsevent.cpp
|
|
LEGO1/mxdsfile.cpp
|
|
LEGO1/mxdsmediaaction.cpp
|
|
LEGO1/mxdsmultiaction.cpp
|
|
LEGO1/mxdsobject.cpp
|
|
LEGO1/mxdsobjectaction.cpp
|
|
LEGO1/mxdsparallelaction.cpp
|
|
LEGO1/mxdsselectaction.cpp
|
|
LEGO1/mxdsserialaction.cpp
|
|
LEGO1/mxdssound.cpp
|
|
LEGO1/mxdssource.cpp
|
|
LEGO1/mxdsstill.cpp
|
|
LEGO1/mxdssubscriber.cpp
|
|
LEGO1/mxentity.cpp
|
|
LEGO1/mxeventmanager.cpp
|
|
LEGO1/mxeventpresenter.cpp
|
|
LEGO1/mxflcpresenter.cpp
|
|
LEGO1/mxioinfo.cpp
|
|
LEGO1/mxloopingflcpresenter.cpp
|
|
LEGO1/mxloopingsmkpresenter.cpp
|
|
LEGO1/mxmediapresenter.cpp
|
|
LEGO1/mxmusicpresenter.cpp
|
|
LEGO1/mxnotificationmanager.cpp
|
|
LEGO1/mxomni.cpp
|
|
LEGO1/mxomnicreateflags.cpp
|
|
LEGO1/mxomnicreateparam.cpp
|
|
LEGO1/mxomnicreateparambase.cpp
|
|
LEGO1/mxpalette.cpp
|
|
LEGO1/mxpresenter.cpp
|
|
LEGO1/mxscheduler.cpp
|
|
LEGO1/mxsmkpresenter.cpp
|
|
LEGO1/mxsoundmanager.cpp
|
|
LEGO1/mxsoundpresenter.cpp
|
|
LEGO1/mxstillpresenter.cpp
|
|
LEGO1/mxstreamer.cpp
|
|
LEGO1/mxstring.cpp
|
|
LEGO1/mxstringvariable.cpp
|
|
LEGO1/mxtimer.cpp
|
|
LEGO1/mxtransitionmanager.cpp
|
|
LEGO1/mxunknown100dc6b0.cpp
|
|
LEGO1/mxvariabletable.cpp
|
|
LEGO1/mxvideomanager.cpp
|
|
LEGO1/mxvideoparam.cpp
|
|
LEGO1/mxvideoparamflags.cpp
|
|
LEGO1/mxvideopresenter.cpp
|
|
LEGO1/mxwavepresenter.cpp
|
|
LEGO1/pizza.cpp
|
|
LEGO1/pizzamissionstate.cpp
|
|
LEGO1/pizzeria.cpp
|
|
LEGO1/pizzeriastate.cpp
|
|
LEGO1/police.cpp
|
|
LEGO1/policeentity.cpp
|
|
LEGO1/policestate.cpp
|
|
LEGO1/racecar.cpp
|
|
LEGO1/racestandsentity.cpp
|
|
LEGO1/racestate.cpp
|
|
LEGO1/radio.cpp
|
|
LEGO1/radiostate.cpp
|
|
LEGO1/realtimeview.cpp
|
|
LEGO1/registrationbook.cpp
|
|
LEGO1/score.cpp
|
|
LEGO1/scorestate.cpp
|
|
LEGO1/skateboard.cpp
|
|
LEGO1/towtrack.cpp
|
|
LEGO1/towtrackmissionstate.cpp
|
|
LEGO1/viewmanager.cpp
|
|
)
|
|
|
|
# Link libraries
|
|
target_link_libraries(lego1 PRIVATE ddraw dsound winmm)
|
|
|
|
# Make sure filenames are ALL CAPS
|
|
set_property(TARGET lego1 PROPERTY OUTPUT_NAME LEGO1)
|
|
set_property(TARGET lego1 PROPERTY SUFFIX ".DLL")
|
|
|
|
if (ISLE_BUILD_APP)
|
|
add_executable(isle WIN32
|
|
ISLE/res/isle.rc
|
|
ISLE/isleapp.cpp
|
|
ISLE/define.cpp
|
|
)
|
|
|
|
# Include LEGO1 headers in ISLE
|
|
target_include_directories(isle PRIVATE "${CMAKE_SOURCE_DIR}/LEGO1")
|
|
|
|
# Link DSOUND, WINMM, and LEGO1
|
|
target_link_libraries(isle PRIVATE dsound winmm lego1)
|
|
|
|
# Make sure filenames are ALL CAPS
|
|
set_property(TARGET isle PROPERTY OUTPUT_NAME ISLE)
|
|
set_property(TARGET isle PROPERTY SUFFIX ".EXE")
|
|
endif()
|
|
|
|
if (MSVC)
|
|
# These flags have been taken from the defaults for a Visual C++ 4.20 project (the compiler the
|
|
# game was originally built with) and tweaked slightly to produce more debugging info for reccmp.
|
|
# They ensure a recompilation that can be byte/instruction accurate to the original binaries.
|
|
|
|
target_compile_options(isle PRIVATE "/ML$<$<CONFIG:Debug>:d>")
|
|
target_compile_options(lego1 PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
|
|
|
set(CMAKE_CXX_FLAGS "/W3 /GX /D \"WIN32\" /D \"_WINDOWS\"")
|
|
set(CMAKE_CXX_FLAGS_DEBUG "/Gm /Zi /Od /D \"_DEBUG\"")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "/O2 /D \"NDEBUG\"")
|
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Zi /O2 /D \"NDEBUG\"")
|
|
set(CMAKE_CXX_FLAGS_MINSIZEREL "/Os /D \"NDEBUG\"")
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "/machine:I386")
|
|
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/incremental:yes /debug")
|
|
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/incremental:no")
|
|
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "/incremental:no /debug")
|
|
set(CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "/incremental:no")
|
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "/machine:I386")
|
|
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "/incremental:yes /debug")
|
|
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "/incremental:no")
|
|
set(CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO "/incremental:no /debug")
|
|
set(CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL "/incremental:no")
|
|
endif()
|