Merge data/ into resources/

This commit is contained in:
Tamás Bálint Misius 2022-12-25 11:03:29 +01:00
parent 3e3ee8a722
commit d3ab2e231e
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
7 changed files with 4 additions and 5 deletions

View File

@ -1 +0,0 @@
data_files += to_array.process('font.bz2', extra_args: 'compressed_font_data')

View File

@ -6,7 +6,7 @@ import re
import argparse
CP_MAX = 0x10FFFF
FONT_CPP = "data/font.bz2"
FONT_CPP = "resources/font.bz2"
FONT_HEIGHT = 12

View File

@ -19,7 +19,7 @@ if get_option('prepare')
endif
to_array = generator(
executable('toarray', sources: 'data/ToArray.cpp', native: true),
executable('toarray', sources: 'resources/ToArray.cpp', native: true),
output: [ '@PLAINNAME@.cpp', '@PLAINNAME@.h' ],
arguments: [ '@OUTPUT0@', '@OUTPUT1@', '@INPUT@', '@EXTRA_ARGS@' ]
)
@ -304,7 +304,7 @@ if host_platform == 'windows'
endif
endif
project_inc = include_directories([ 'src', 'data', 'resources' ])
project_inc = include_directories([ 'src', 'resources' ])
if host_platform == 'windows'
ident_platform = is_64bit ? 'WIN64' : 'WIN32'
@ -356,7 +356,6 @@ endif
data_files = []
subdir('src')
subdir('data')
subdir('resources')
powder_files += data_files

View File

@ -87,3 +87,4 @@ endif
data_files += to_array.process('save_local.png', extra_args: 'save_local_png')
data_files += to_array.process('save_online.png', extra_args: 'save_online_png')
data_files += to_array.process('font.bz2', extra_args: 'compressed_font_data')