Browse Source

Generate devilutionx.mpq

pull/2979/head
Anders Jenbo 5 years ago
parent
commit
6321ddb721
  1. 6
      .circleci/config.yml
  2. 2
      .github/workflows/Linux_x86.yml
  3. 2
      .github/workflows/Linux_x86_64_SDL1.yml
  4. 2
      .github/workflows/Windows_x64.yml
  5. 2
      .github/workflows/Windows_x86.yml
  6. 100
      CMakeLists.txt
  7. BIN
      Packaging/resources/assets/data/boxleftend.pcx
  8. BIN
      Packaging/resources/assets/data/boxmiddle.pcx
  9. BIN
      Packaging/resources/assets/data/boxrightend.pcx
  10. BIN
      Packaging/resources/assets/data/charbg.pcx
  11. BIN
      Packaging/resources/assets/data/dirtybuc.pcx
  12. BIN
      Packaging/resources/assets/data/dirtybucp.pcx
  13. BIN
      Packaging/resources/assets/data/health.pcx
  14. BIN
      Packaging/resources/assets/data/healthbox.pcx
  15. BIN
      Packaging/resources/assets/data/panel8buc.pcx
  16. BIN
      Packaging/resources/assets/data/panel8bucp.pcx
  17. BIN
      Packaging/resources/assets/data/resistance.pcx
  18. BIN
      Packaging/resources/assets/data/talkbutton.pcx
  19. BIN
      Packaging/resources/assets/data/xpbar.pcx
  20. BIN
      Packaging/resources/assets/fonts/12-00.bin
  21. BIN
      Packaging/resources/assets/fonts/12-00.pcx
  22. 38
      Packaging/resources/assets/fonts/12-01.bin
  23. BIN
      Packaging/resources/assets/fonts/12-01.pcx
  24. BIN
      Packaging/resources/assets/fonts/12-02.bin
  25. BIN
      Packaging/resources/assets/fonts/12-02.pcx
  26. BIN
      Packaging/resources/assets/fonts/12-03.bin
  27. BIN
      Packaging/resources/assets/fonts/12-03.pcx
  28. 38
      Packaging/resources/assets/fonts/12-04.bin
  29. BIN
      Packaging/resources/assets/fonts/12-04.pcx
  30. BIN
      Packaging/resources/assets/fonts/24-00.bin
  31. BIN
      Packaging/resources/assets/fonts/24-00.pcx
  32. 12
      Packaging/resources/assets/fonts/24-01.bin
  33. BIN
      Packaging/resources/assets/fonts/24-01.pcx
  34. BIN
      Packaging/resources/assets/fonts/24-02.bin
  35. BIN
      Packaging/resources/assets/fonts/24-02.pcx
  36. BIN
      Packaging/resources/assets/fonts/24-03.bin
  37. BIN
      Packaging/resources/assets/fonts/24-03.pcx
  38. 17
      Packaging/resources/assets/fonts/24-04.bin
  39. BIN
      Packaging/resources/assets/fonts/24-04.pcx
  40. BIN
      Packaging/resources/assets/fonts/30-00.bin
  41. BIN
      Packaging/resources/assets/fonts/30-00.pcx
  42. 4
      Packaging/resources/assets/fonts/30-01.bin
  43. BIN
      Packaging/resources/assets/fonts/30-01.pcx
  44. BIN
      Packaging/resources/assets/fonts/30-02.bin
  45. BIN
      Packaging/resources/assets/fonts/30-02.pcx
  46. BIN
      Packaging/resources/assets/fonts/30-03.bin
  47. BIN
      Packaging/resources/assets/fonts/30-03.pcx
  48. 1
      Packaging/resources/assets/fonts/30-04.bin
  49. BIN
      Packaging/resources/assets/fonts/30-04.pcx
  50. BIN
      Packaging/resources/assets/fonts/42-00.bin
  51. BIN
      Packaging/resources/assets/fonts/42-00.pcx
  52. 7
      Packaging/resources/assets/fonts/42-01.bin
  53. BIN
      Packaging/resources/assets/fonts/42-01.pcx
  54. BIN
      Packaging/resources/assets/fonts/42-02.bin
  55. BIN
      Packaging/resources/assets/fonts/42-02.pcx
  56. BIN
      Packaging/resources/assets/fonts/42-03.bin
  57. BIN
      Packaging/resources/assets/fonts/42-03.pcx
  58. 3
      Packaging/resources/assets/fonts/42-04.bin
  59. BIN
      Packaging/resources/assets/fonts/42-04.pcx
  60. BIN
      Packaging/resources/assets/fonts/46-00.bin
  61. BIN
      Packaging/resources/assets/fonts/46-00.pcx
  62. 3
      Packaging/resources/assets/fonts/46-01.bin
  63. BIN
      Packaging/resources/assets/fonts/46-01.pcx
  64. BIN
      Packaging/resources/assets/fonts/46-02.bin
  65. BIN
      Packaging/resources/assets/fonts/46-02.pcx
  66. BIN
      Packaging/resources/assets/fonts/46-03.bin
  67. BIN
      Packaging/resources/assets/fonts/46-03.pcx
  68. 3
      Packaging/resources/assets/fonts/46-04.bin
  69. BIN
      Packaging/resources/assets/fonts/46-04.pcx
  70. BIN
      Packaging/resources/assets/fonts/black.trn
  71. BIN
      Packaging/resources/assets/fonts/blue.trn
  72. BIN
      Packaging/resources/assets/fonts/buttonface.trn
  73. BIN
      Packaging/resources/assets/fonts/buttonpushed.trn
  74. BIN
      Packaging/resources/assets/fonts/goldui.trn
  75. BIN
      Packaging/resources/assets/fonts/golduis.trn
  76. BIN
      Packaging/resources/assets/fonts/grayui.trn
  77. BIN
      Packaging/resources/assets/fonts/grayuis.trn
  78. BIN
      Packaging/resources/assets/fonts/red.trn
  79. BIN
      Packaging/resources/assets/fonts/white.trn
  80. BIN
      Packaging/resources/assets/fonts/whitegold.trn
  81. BIN
      Packaging/resources/assets/gendata/cutportlw.pcx
  82. BIN
      Packaging/resources/assets/gendata/cutportrw.pcx
  83. BIN
      Packaging/resources/assets/gendata/cutstartw.pcx
  84. 0
      Packaging/resources/assets/ui_art/button.png
  85. BIN
      Packaging/resources/assets/ui_art/creditsw.pcx
  86. 0
      Packaging/resources/assets/ui_art/directions.png
  87. BIN
      Packaging/resources/assets/ui_art/directions2.png
  88. BIN
      Packaging/resources/assets/ui_art/hf_titlew.pcx
  89. BIN
      Packaging/resources/assets/ui_art/mainmenuw.pcx
  90. BIN
      Packaging/resources/assets/ui_art/supportw.pcx
  91. BIN
      Packaging/resources/devilutionx.mpq
  92. BIN
      Packaging/resources/ui_art/directions2.png
  93. 2
      android-project/CMake/android_defs.cmake

6
.circleci/config.yml

@ -8,7 +8,7 @@ jobs:
- checkout
- run: echo deb http://deb.debian.org/debian stretch-backports-sloppy main >> /etc/apt/sources.list.d/debian-backports.list
- run: apt update -y
- run: apt install -y g++ libsdl2-dev libsdl2-ttf-dev git rpm wget
- run: apt install -y g++ libsdl2-dev libsdl2-ttf-dev git rpm wget smpq
- run: apt install -y -t 'stretch-backports*' cmake libsodium-dev libpng-dev
- run: cmake -S. -Bbuild .. -DNIGHTLY_BUILD=ON -DCMAKE_INSTALL_PREFIX=/usr
- run: cmake --build build -j 2 --target package
@ -47,7 +47,7 @@ jobs:
steps:
- checkout
- run: sudo apt update -y
- run: sudo apt install -y g++ cmake ninja-build
- run: sudo apt install -y g++ cmake ninja-build smpq
- run: cd android-project && ./gradlew assembleDebug
- store_artifacts: {path: ./android-project/app/build/outputs/apk/debug/app-debug.apk, destination: devilutionx-debug.apk}
3ds:
@ -57,7 +57,7 @@ jobs:
steps:
- checkout
- run: apt-get update -y
- run: apt-get install -y ffmpeg gettext
- run: apt-get install -y ffmpeg gettext smpq
- run: wget https://github.com/Steveice10/bannertool/releases/download/1.2.0/bannertool.zip
- run: unzip -j "bannertool.zip" "linux-x86_64/bannertool" -d "/opt/devkitpro/tools/bin"
- run: wget https://github.com/jakcron/Project_CTR/releases/download/v0.16/makerom_016_ctrtool.zip

2
.github/workflows/Linux_x86.yml

@ -20,7 +20,7 @@ jobs:
run: >
sudo dpkg --add-architecture i386 &&
sudo apt update -y &&
sudo apt install -y cmake file g++-multilib git libfmt-dev:i386 libsdl2-dev:i386 libsdl2-ttf-dev:i386 libsodium-dev:i386 libpng-dev:i386 rpm wget
sudo apt install -y cmake file g++-multilib git libfmt-dev:i386 libsdl2-dev:i386 libsdl2-ttf-dev:i386 libsodium-dev:i386 libpng-dev:i386 rpm wget smpq
- name: Cache CMake build folder
uses: actions/cache@v2

2
.github/workflows/Linux_x86_64_SDL1.yml

@ -19,7 +19,7 @@ jobs:
- name: Create Build Environment
run: >
sudo apt update &&
sudo apt install -y cmake file g++ git libfmt-dev libsdl-dev libsdl-ttf2.0-dev libsodium-dev libpng-dev rpm
sudo apt install -y cmake file g++ git libfmt-dev libsdl-dev libsdl-ttf2.0-dev libsodium-dev libpng-dev rpm smpq
- name: Cache CMake build folder
uses: actions/cache@v2

2
.github/workflows/Windows_x64.yml

@ -19,7 +19,7 @@ jobs:
- name: Create Build Environment
run: >
sudo apt update &&
sudo apt install -y cmake gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 pkg-config-mingw-w64-x86-64 wget git sudo &&
sudo apt install -y cmake gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 pkg-config-mingw-w64-x86-64 wget git sudo smpq &&
sudo Packaging/windows/mingw-prep64.sh
- name: Cache CMake build folder

2
.github/workflows/Windows_x86.yml

@ -19,7 +19,7 @@ jobs:
- name: Create Build Environment
run: >
sudo apt update &&
sudo apt install -y cmake gcc-mingw-w64-i686 g++-mingw-w64-i686 pkg-config-mingw-w64-i686 wget git sudo &&
sudo apt install -y cmake gcc-mingw-w64-i686 g++-mingw-w64-i686 pkg-config-mingw-w64-i686 wget git sudo smpq &&
sudo Packaging/windows/mingw-prep.sh
- name: Cache CMake build folder

100
CMakeLists.txt

@ -600,10 +600,6 @@ else()
endif()
target_link_libraries(${BIN_TARGET} PRIVATE libdevilutionx)
# Copy the font and devilutionx.mpq to the build directory to it works from the build directory
file(COPY "Packaging/resources/CharisSILB.ttf" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
file(COPY "Packaging/resources/devilutionx.mpq" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
# Use file GENERATE instead of configure_file because configure_file
# does not support generator expressions.
get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
@ -675,6 +671,102 @@ if (Gettext_FOUND)
endif()
endif()
set(devilutionx_assets
data/boxleftend.pcx
data/boxmiddle.pcx
data/boxrightend.pcx
data/charbg.pcx
data/dirtybuc.pcx
data/dirtybucp.pcx
data/healthbox.pcx
data/health.pcx
data/panel8buc.pcx
data/panel8bucp.pcx
data/resistance.pcx
data/talkbutton.pcx
data/xpbar.pcx
fonts/12-00.bin
fonts/12-00.pcx
fonts/12-01.bin
fonts/12-01.pcx
fonts/12-02.bin
fonts/12-02.pcx
fonts/12-03.bin
fonts/12-03.pcx
fonts/12-04.bin
fonts/12-04.pcx
fonts/24-00.bin
fonts/24-00.pcx
fonts/24-01.bin
fonts/24-01.pcx
fonts/24-02.bin
fonts/24-02.pcx
fonts/24-03.bin
fonts/24-03.pcx
fonts/24-04.bin
fonts/24-04.pcx
fonts/30-00.bin
fonts/30-00.pcx
fonts/30-01.bin
fonts/30-01.pcx
fonts/30-02.bin
fonts/30-02.pcx
fonts/30-03.bin
fonts/30-03.pcx
fonts/30-04.bin
fonts/30-04.pcx
fonts/42-00.bin
fonts/42-00.pcx
fonts/42-01.bin
fonts/42-01.pcx
fonts/42-02.bin
fonts/42-02.pcx
fonts/42-03.bin
fonts/42-03.pcx
fonts/42-04.bin
fonts/42-04.pcx
fonts/46-00.bin
fonts/46-00.pcx
fonts/46-01.bin
fonts/46-01.pcx
fonts/46-02.bin
fonts/46-02.pcx
fonts/46-03.bin
fonts/46-03.pcx
fonts/46-04.bin
fonts/46-04.pcx
fonts/black.trn
fonts/blue.trn
fonts/buttonface.trn
fonts/buttonpushed.trn
fonts/golduis.trn
fonts/goldui.trn
fonts/grayuis.trn
fonts/grayui.trn
fonts/red.trn
fonts/whitegold.trn
fonts/white.trn
gendata/cutportlw.pcx
gendata/cutportrw.pcx
gendata/cutstartw.pcx
ui_art/creditsw.pcx
ui_art/hf_titlew.pcx
ui_art/mainmenuw.pcx
ui_art/supportw.pcx)
find_program(SMPQ smpq)
if(SMPQ)
file(REMOVE "Packaging/resources/devilutionx.mpq")
execute_process(
WORKING_DIRECTORY "${DevilutionX_SOURCE_DIR}/Packaging/resources/assets"
COMMAND ${SMPQ} -M 1 -C PKWARE -c "../devilutionx.mpq" ${devilutionx_assets})
# Copy devilutionx.mpq to the build directory so the game can run from the build directory
file(COPY "Packaging/resources/devilutionx.mpq" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
endif()
# Copy CharisSILB.ttf to the build directory so the game can run from the build directory
file(COPY "Packaging/resources/CharisSILB.ttf" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
target_include_directories(libdevilutionx PUBLIC
Source
${CMAKE_CURRENT_BINARY_DIR})

BIN
Packaging/resources/assets/data/boxleftend.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/boxmiddle.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/boxrightend.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/charbg.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/dirtybuc.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/dirtybucp.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/health.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/healthbox.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/panel8buc.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/panel8bucp.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/resistance.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/talkbutton.pcx

Binary file not shown.

BIN
Packaging/resources/assets/data/xpbar.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/12-00.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/12-00.pcx

Binary file not shown.

38
Packaging/resources/assets/fonts/12-01.bin

@ -0,0 +1,38 @@
         
   
   

   


 

 


 

  

BIN
Packaging/resources/assets/fonts/12-01.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/12-02.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/12-02.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/12-03.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/12-03.pcx

Binary file not shown.

38
Packaging/resources/assets/fonts/12-04.bin

@ -0,0 +1,38 @@
   
 
 
 


   
    
 
 
  
 

 

 



 
 
    








BIN
Packaging/resources/assets/fonts/12-04.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/24-00.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/24-00.pcx

Binary file not shown.

12
Packaging/resources/assets/fonts/24-01.bin

@ -0,0 +1,12 @@
    
     

            
      

       

BIN
Packaging/resources/assets/fonts/24-01.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/24-02.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/24-02.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/24-03.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/24-03.pcx

Binary file not shown.

17
Packaging/resources/assets/fonts/24-04.bin

@ -0,0 +1,17 @@
             
 
   
 
  



      
    
    



BIN
Packaging/resources/assets/fonts/24-04.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/30-00.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/30-00.pcx

Binary file not shown.

4
Packaging/resources/assets/fonts/30-01.bin

@ -0,0 +1,4 @@
                   

  


BIN
Packaging/resources/assets/fonts/30-01.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/30-02.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/30-02.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/30-03.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/30-03.pcx

Binary file not shown.

1
Packaging/resources/assets/fonts/30-04.bin

@ -0,0 +1 @@
                     !                  

BIN
Packaging/resources/assets/fonts/30-04.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/42-00.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/42-00.pcx

Binary file not shown.

7
Packaging/resources/assets/fonts/42-01.bin

@ -0,0 +1,7 @@



% )" !  !#)'"!!

)'"!

BIN
Packaging/resources/assets/fonts/42-01.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/42-02.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/42-02.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/42-03.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/42-03.pcx

Binary file not shown.

3
Packaging/resources/assets/fonts/42-04.bin

@ -0,0 +1,3 @@

! # '"$"!.('!'%"%!!!
!

BIN
Packaging/resources/assets/fonts/42-04.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/46-00.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/46-00.pcx

Binary file not shown.

3
Packaging/resources/assets/fonts/46-01.bin

@ -0,0 +1,3 @@
"## 
 #!!!,& %%% $%% 1)##"!"!''!!% ! +$!& 
 1/)('!# %% %% %###!!! 1/)'#!!

BIN
Packaging/resources/assets/fonts/46-01.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/46-02.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/46-02.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/46-03.bin

Binary file not shown.

BIN
Packaging/resources/assets/fonts/46-03.pcx

Binary file not shown.

3
Packaging/resources/assets/fonts/46-04.bin

@ -0,0 +1,3 @@
#  $"%!# %")!! "$& *" #
/!%")"!+%"!)#("70!.'.!#$!!.)-%("# ""#%)"(" % ")" "#!!!&!!! ! "#

BIN
Packaging/resources/assets/fonts/46-04.pcx

Binary file not shown.

BIN
Packaging/resources/assets/fonts/black.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/blue.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/buttonface.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/buttonpushed.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/goldui.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/golduis.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/grayui.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/grayuis.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/red.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/white.trn

Binary file not shown.

BIN
Packaging/resources/assets/fonts/whitegold.trn

Binary file not shown.

BIN
Packaging/resources/assets/gendata/cutportlw.pcx

Binary file not shown.

BIN
Packaging/resources/assets/gendata/cutportrw.pcx

Binary file not shown.

BIN
Packaging/resources/assets/gendata/cutstartw.pcx

Binary file not shown.

0
Packaging/resources/ui_art/button.png → Packaging/resources/assets/ui_art/button.png

Before

Width:  |  Height:  |  Size: 197 KiB

After

Width:  |  Height:  |  Size: 197 KiB

BIN
Packaging/resources/assets/ui_art/creditsw.pcx

Binary file not shown.

0
Packaging/resources/ui_art/directions.png → Packaging/resources/assets/ui_art/directions.png

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

BIN
Packaging/resources/assets/ui_art/directions2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Packaging/resources/assets/ui_art/hf_titlew.pcx

Binary file not shown.

BIN
Packaging/resources/assets/ui_art/mainmenuw.pcx

Binary file not shown.

BIN
Packaging/resources/assets/ui_art/supportw.pcx

Binary file not shown.

BIN
Packaging/resources/devilutionx.mpq

Binary file not shown.

BIN
Packaging/resources/ui_art/directions2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

2
android-project/CMake/android_defs.cmake

@ -18,5 +18,5 @@ file(
COPY "${DevilutionX_SOURCE_DIR}/Packaging/resources/CharisSILB.ttf"
DESTINATION "${DevilutionX_SOURCE_DIR}/android-project/app/src/main/assets")
file(GLOB VirtualGamepadArt "${DevilutionX_SOURCE_DIR}/Packaging/resources/ui_art/*")
file(GLOB VirtualGamepadArt "${DevilutionX_SOURCE_DIR}/Packaging/resources/assets/ui_art/*")
file(COPY ${VirtualGamepadArt} DESTINATION "${DevilutionX_SOURCE_DIR}/android-project/app/src/main/assets/ui_art")

Loading…
Cancel
Save