-
Notifications
You must be signed in to change notification settings - Fork 1
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
2 changed files
with
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
set(SOURCE2PY_PACKAGE_DIR ${BUILD_DIR}/Package/Source2Py) | ||
set(SOURCE2PY_PACKAGE_RES_DIR ${SCRIPTS_DIR}/Resources) | ||
|
||
add_custom_command(TARGET Source2Py POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E make_directory "${SOURCE2PY_PACKAGE_DIR}" | ||
COMMAND ${CMAKE_COMMAND} -E make_directory "${SOURCE2PY_PACKAGE_DIR}/bin" | ||
COMMAND ${CMAKE_COMMAND} -E make_directory "${SOURCE2PY_PACKAGE_DIR}/plugins" | ||
|
||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:Source2Py> "${SOURCE2PY_PACKAGE_DIR}/bin" | ||
COMMAND ${CMAKE_COMMAND} -E copy "${SOURCE2PY_PACKAGE_RES_DIR}/pyplugins.ini" "${SOURCE2PY_PACKAGE_DIR}" | ||
COMMAND ${CMAKE_COMMAND} -E copy "${SOURCE2PY_PACKAGE_RES_DIR}/gameevents.ini" "${SOURCE2PY_PACKAGE_DIR}/bin" | ||
|
||
# Copy sample plugins to package directory | ||
COMMAND ${CMAKE_COMMAND} -E copy "${SAMPLE_PLUGINS_DIR}/SamplePlugin.py" "${SOURCE2PY_PACKAGE_DIR}/plugins" | ||
set(SOURCE2PY_PACKAGE_DIR ${BUILD_DIR}/Package) | ||
set(SOURCE2PY_PACKAGE_RES_DIR ${SCRIPTS_DIR}/Resources) | ||
|
||
add_custom_command(TARGET Source2Py POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E make_directory "${SOURCE2PY_PACKAGE_DIR}/Source2Py" | ||
COMMAND ${CMAKE_COMMAND} -E make_directory "${SOURCE2PY_PACKAGE_DIR}/Source2Py/bin" | ||
COMMAND ${CMAKE_COMMAND} -E make_directory "${SOURCE2PY_PACKAGE_DIR}/Source2Py/plugins" | ||
COMMAND ${CMAKE_COMMAND} -E make_directory "${SOURCE2PY_PACKAGE_DIR}/metamod" | ||
|
||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:Source2Py> "${SOURCE2PY_PACKAGE_DIR}/Source2Py/bin" | ||
COMMAND ${CMAKE_COMMAND} -E copy "${SOURCE2PY_PACKAGE_RES_DIR}/pyplugins.ini" "${SOURCE2PY_PACKAGE_DIR}/Source2Py" | ||
COMMAND ${CMAKE_COMMAND} -E copy "${SOURCE2PY_PACKAGE_RES_DIR}/gameevents.ini" "${SOURCE2PY_PACKAGE_DIR}/Source2Py/bin" | ||
COMMAND ${CMAKE_COMMAND} -E copy "${SOURCE2PY_PACKAGE_RES_DIR}/Source2Py.vdf" "${SOURCE2PY_PACKAGE_DIR}/metamod" | ||
|
||
# Copy sample plugins to package directory | ||
COMMAND ${CMAKE_COMMAND} -E copy "${SAMPLE_PLUGINS_DIR}/SamplePlugin.py" "${SOURCE2PY_PACKAGE_DIR}/Source2Py/plugins" | ||
) |
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,5 @@ | ||
"Metamod Plugin" | ||
{ | ||
"alias" "Source2Py" | ||
"file" "addons/Source2Py/bin/Source2Py" | ||
} |