forked from scummvm/scummvm
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
5 changed files
with
142 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export KOS32_SDK_DIR=$HOME/sdk | ||
export KOS32_AUTOBUILD=$HOME/autobuild | ||
|
||
# Use plugins for both engines and detection as KolibriOS has a limit per executable module | ||
./configure --host=kos32 --enable-release --enable-plugins --default-dynamic --enable-detection-dynamic --enable-engine=testbed | ||
|
||
make -j5 all zip-root scummvm-zip |
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,35 @@ | ||
bundle = zip-root | ||
|
||
all: scummvm.kos $(EXECUTABLE) | ||
|
||
scummvm.kos: $(srcdir)/backends/platform/sdl/kolibrios/wrapper-main.c | ||
+$(QUIET_CC)$(CXX) -I$(KOS32_SDK_DIR)/sources/newlib/libc/include -specs=$(srcdir)/backends/platform/sdl/kolibrios/kolibrios.spec -x c -o $@.coff $< | ||
+$(QUIET)$(KOS32_AUTOBUILD)/bin/kos32-objcopy $@.coff -O binary $@ | ||
|
||
$(bundle): all | ||
$(RM) -rf $(bundle) | ||
$(MKDIR) -p $(bundle)/scummvm | ||
$(CP) $(DIST_FILES_DOCS) $(bundle)/scummvm | ||
$(MKDIR) $(bundle)/scummvm/themes | ||
$(CP) $(DIST_FILES_THEMES) $(bundle)/scummvm/themes/ | ||
|
||
ifdef DIST_FILES_ENGINEDATA | ||
$(MKDIR) $(bundle)/scummvm/engine-data | ||
$(CP) $(DIST_FILES_ENGINEDATA) $(bundle)/scummvm/engine-data/ | ||
endif | ||
ifdef DIST_FILES_NETWORKING | ||
$(CP) $(DIST_FILES_NETWORKING) $(bundle)/scummvm | ||
endif | ||
ifdef DIST_FILES_VKEYBD | ||
$(CP) $(DIST_FILES_VKEYBD) $(bundle)/scummvm | ||
endif | ||
ifdef DYNAMIC_MODULES | ||
$(MKDIR) $(bundle)/scummvm/plugins/ | ||
$(CP) $(PLUGINS) $(bundle)/scummvm/plugins/ | ||
endif | ||
$(CP) scummvm.kos $(bundle)/scummvm/scummvm | ||
$(CP) scummvm.dll $(bundle)/scummvm/scummvm.dll | ||
|
||
scummvm-zip: $(bundle) | ||
$(RM) scummvm_kolibrios.zip | ||
cd $(bundle) && zip -r ../scummvm_kolibri.zip scummvm |
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 @@ | ||
*lib: | ||
-lc %{!static:-ldll} | ||
|
||
*libgcc: | ||
-lsupc++ -lgcc | ||
|
||
*link: | ||
%{mdll:%{shared: %eshared and mdll are not compatible} %{static: %estatic and mdll are not compatible}} -L%:getenv(KOS32_SDK_DIR /lib) %{shared|mdll: -shared --entry _DllStartup} %{shared:-T%:getenv(KOS32_SDK_DIR /sources/newlib/dll.lds)} %{static: -static -T%:getenv(KOS32_SDK_DIR /sources/newlib/app.lds)} %{!mdll:%{!static:%{!shared: -call_shared -T%:getenv(KOS32_SDK_DIR /sources/newlib/app-dynamic.lds)}}} %{!mdll:-s --image-base 0} %{mdll:--enable-auto-image-base} %(shared_libgcc_undefs) | ||
|
||
*startfile: | ||
|
||
|
||
*endfile: | ||
|
||
|
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