Skip to content

Commit 72c6eb2

Browse files
committed
oops, don't build extras on android
1 parent 2a9a0eb commit 72c6eb2

File tree

4 files changed

+41
-30
lines changed

4 files changed

+41
-30
lines changed

CMakeLists.txt

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -108,41 +108,43 @@ if(ANDROID OR CMAKE_SIZEOF_VOID_P EQUAL 8)
108108
set(VGUI_STATIC ON CACHE BOOL "" FORCE)
109109
add_subdirectory(3rdparty/vgui_dll)
110110

111-
set(XASH_SDK ${CMAKE_CURRENT_SOURCE_DIR})
112-
add_subdirectory(3rdparty/vgui_support)
111+
set(XASH_SDK ${CMAKE_CURRENT_SOURCE_DIR})
112+
add_subdirectory(3rdparty/vgui_support)
113113
elseif(BUILD_VGUI)
114-
add_subdirectory(3rdparty/vgui_dll)
114+
add_subdirectory(3rdparty/vgui_dll)
115115
endif()
116116

117117
if(BUILD_PMAN)
118118
add_definitions(-DUSE_PARTICLEMAN)
119119
add_subdirectory(3rdparty/particleman)
120120
endif()
121121

122-
set(EXTRAS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/tf15client-extras")
123-
file(GLOB_RECURSE EXTRAS_FILES "${EXTRAS_DIR}/*")
124-
125-
set(EXTRAS_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/extras.pk3")
126-
127-
add_custom_command(
128-
OUTPUT ${EXTRAS_OUTPUT}
129-
COMMAND ${Python_EXECUTABLE}
130-
${CMAKE_CURRENT_SOURCE_DIR}/scripts/pack_extras.py
131-
${EXTRAS_DIR}
132-
${EXTRAS_OUTPUT}
133-
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pack_extras.py
134-
${EXTRAS_FILES}
135-
COMMENT "Generating extras.pk3..."
136-
)
137-
138-
add_custom_target(generate_extras ALL
139-
DEPENDS ${EXTRAS_OUTPUT}
140-
)
141-
142-
install(
143-
FILES "${EXTRAS_OUTPUT}"
144-
DESTINATION ${GAME_DIR}
145-
)
122+
if(NOT ANDROID)
123+
set(EXTRAS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/tf15client-extras")
124+
file(GLOB_RECURSE EXTRAS_FILES "${EXTRAS_DIR}/*")
125+
126+
set(EXTRAS_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/extras.pk3")
127+
128+
add_custom_command(
129+
OUTPUT ${EXTRAS_OUTPUT}
130+
COMMAND ${Python_EXECUTABLE}
131+
${CMAKE_CURRENT_SOURCE_DIR}/scripts/pack_extras.py
132+
${EXTRAS_DIR}
133+
${EXTRAS_OUTPUT}
134+
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pack_extras.py
135+
${EXTRAS_FILES}
136+
COMMENT "Generating extras.pk3..."
137+
)
138+
139+
add_custom_target(generate_extras ALL
140+
DEPENDS ${EXTRAS_OUTPUT}
141+
)
142+
143+
install(
144+
FILES "${EXTRAS_OUTPUT}"
145+
DESTINATION ${GAME_DIR}
146+
)
147+
endif()
146148

147149
if(WIN32)
148150
set(CPACK_GENERATOR "ZIP")

android/app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ static def getBuildNum() {
9797
}
9898

9999
def getGitHash() {
100-
Process process = new ProcessBuilder("git", "rev-parse", "--short", "HEAD").directory(project.rootDir)
101-
.redirectErrorStream(true).start()
100+
Process process = new ProcessBuilder("git", "rev-parse", "--short", "HEAD")
101+
.directory(project.rootDir)
102+
.redirectErrorStream(true)
103+
.start()
102104
InputStreamReader inputStreamReader = new InputStreamReader(process.getInputStream())
103105
BufferedReader bufferedReader = new BufferedReader(inputStreamReader)
104106

linux/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM registry.gitlab.steamos.cloud/steamrt/scout/sdk:latest
2+
3+
WORKDIR /app
4+
5+
COPY . .
6+
7+
#CMD cd linux && make

linux/Makefile.tfc_cdll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PM_SHARED_OBJ_DIR=$(TFC_OBJ_DIR)/pm_shared
1818
CFLAGS=$(BASE_CFLAGS) $(ARCH_CFLAGS) -DCLIENT_DLL -DCLIENT_WEAPONS -DGOLDSOURCE_SUPPORT -I/usr/include/malloc -D_snwprintf=swprintf \
1919
-DDISABLE_JUMP_ORIGIN -DDISABLE_VEC_ORIGIN
2020

21-
INCLUDEDIRS=-I$(TFC_SRC_DIR) -I../dlls -I../tfc -I$(COMMON_SRC_DIR) -I$(PUBLIC_SRC_DIR) -I../pm_shared -I../engine -I../vgui_dll/include -I../game_shared -I../external
21+
INCLUDEDIRS=-I$(TFC_SRC_DIR) -I../dlls -I../tfc -I$(COMMON_SRC_DIR) -I$(PUBLIC_SRC_DIR) -I../pm_shared -I../engine -I../3rdparty/vgui_dll/include -I../game_shared -I../external
2222

2323
ifeq ($(OS),Darwin)
2424
LDFLAGS=$(SHLIBLDFLAGS) $(CPP_LIB) -framework Carbon $(CFG)/vgui.dylib -L. -lSDL2-2.0.0

0 commit comments

Comments
 (0)