Skip to content

Commit

Permalink
Improved readme, added CPack support (i.e. CMake Packaging)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwonko committed Apr 19, 2013
1 parent f1a906b commit 255c401
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
21 changes: 20 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ endif(WIN32)
# External version not yet supported, WIP
# option(UseInternalJpeg "Whether to use the included libjpeg instead of a locally installed one" ON)
# option(UseInternalPng "Whether to use the included libpng instead of a locally installed one" ON)
option(PackageDir "Where to place the installer/package." "${CMAKE_SOURCE_DIR}/package")

# Custom CMake Modules needed
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules" ${CMAKE_MODULE_PATH})
Expand Down Expand Up @@ -65,4 +66,22 @@ add_subdirectory(${SPDir})
if(BuildJK2SPGame)
add_subdirectory("${JK2SPDir}/game")
endif(BuildJK2SPGame)
add_subdirectory(${MPDir})
add_subdirectory(${MPDir})

# CPack for installer creation
# TODO: Which version are we?
set(CPACK_PACKAGE_PACKAGE_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "0")
# I'm just not appending the version for now
set(CPACK_PACKAGE_FILE_NAME "OpenJK-${CMAKE_SYSTEM_NAME}-${Architecture}")

set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "An improved Jedi Academy")
set(CPACK_PACKAGE_VENDOR "JA Coders") # TODO: What are we called?
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt")
set(CPACK_PACKAGE_DIRECTORY ${PACKAGE_DIR})
set(CPACK_BINARY_ZIP ON) # always create at least a zip file
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0) # prevent additional directory in zip

include(CPack)
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
## SORRY FOR THE HISTORY CHANGES! ##
For legal reasons we had to make changes to the history. This likely broke every forker's repo. See [here](http://git-scm.com/docs/git-rebase.html#_recovering_from_upstream_rebase) for how to fix if you've changed anything, or just delete your github fork and local folder and start over if you haven't.

## JACoders "OpenJK" project ##
# JACoders "OpenJK" project #
IRC: irc.arloria.net / #JACoders ([webchat](http://www.arloria.net/tiramisu/tiramisu.swf?channels=#jacoders))

The purpose of this project is to maintain and improve the Jedi Academy and Jedi Outcast games, developed by Raven Software.
This project will not attempt to rebalance or otherwise modify core gameplay aspects.

## Installation ##

First, install Jedi Academy.

Then point the OpenJK installer to the GameData folder in the Jedi Academy install, e.g. just point it to your "Jedi Academy/GameData" folder. If you've downloaded an archive, just unpack it to GameData.

## Maintainers (in alphabetical order) ##
* eezstreet
* Ensiform
Expand Down Expand Up @@ -62,7 +68,7 @@ This project will not attempt to rebalance or otherwise modify core gameplay asp
* Removed CD Key Code
* Removed demo restriction code.
* Removed Anti-Tamper Code.
* Shift-Escape will now also open the console as an alternate (ie: keyboard doesn't support the normal console key)
* Shift-Escape will now also open the console as an alternate (e.g.: keyboard doesn't support the normal console key)
* Removed shift key requirement to open console

## Developer Notes ##
Expand All @@ -72,6 +78,7 @@ This project will not attempt to rebalance or otherwise modify core gameplay asp
* rd-dedicated (Stripped down renderer for use with dedicated server)
* rd-raspberry (OpenGL ES compliant renderer for use with Raspberry Pi - feel free to maintain!)
* rd-strawberry (Maintainer: Xycaleth)
* rd-vader (Maintainer: mrwonko)

### Engine "hax" ###
* If your mod intends to use engine "hax" to figure out the nedaddr types (NA_IP, etc) NA_BAD is now 0 and NA_BOT is now 1 instead of vice versa.

0 comments on commit 255c401

Please sign in to comment.