58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# Generate strings, images and files for Windows
|
|
|
|
include ../masterbuild/platform.mk
|
|
|
|
GENROOT = gen/windows
|
|
FORMAT = windows
|
|
STRINGS_EN_US = gen/strings/strings_en_US.json
|
|
FILES = src/files
|
|
APP_IMAGES = src/images/app
|
|
DATA_IMAGES = src/images/data
|
|
|
|
WIN_RESOURCES = ../smo-qt/ionuresources/ionuresources.ts
|
|
|
|
LSPROG = java -Xmx512m -jar LocaleStrings/target/LocaleStrings-${MVN_VERSION}.one-jar.jar --verbose --format=${FORMAT}
|
|
CONVERT = convert
|
|
|
|
clean:
|
|
rm -rf ${GENROOT}
|
|
|
|
init:
|
|
mkdir -p ${GENROOT}
|
|
ant replaceStrings
|
|
echo Done with init
|
|
|
|
compile: init ${GENROOT}/ionuresource.gen.ts files app_images data_images
|
|
|
|
install: compile
|
|
# mkdir -p ../smo-qt/invisimessage/invisimessage/
|
|
cp -f ${GENROOT}/ionuresource.h ../smo-qt/invisimessage/invisimessage/version.h
|
|
cp -f ${GENROOT}/ionuresource.gen.ts ../smo-qt/invisimessage/invisimessage/invisimessage.ts
|
|
# mkdir -p ../win/IonuTrayApp/
|
|
# cp -f ${GENROOT}/ionuresource.h ../win/IonuTrayApp/ionuresource.h
|
|
cp -f ${GENROOT}/ionuresource.h ../win/win-resources/ionuresource.h
|
|
|
|
${GENROOT}/ionuresource.gen.ts: ${STRINGS_EN_US} ${WIN_RESOURCES}
|
|
@echo ===Generate $@ from $^
|
|
${LSPROG} --output=$@ $^
|
|
|
|
files:
|
|
# mkdir -p ${GENROOT}/files/en_US
|
|
# @echo ===Copy ${FILES} to ${GENROOT}/files
|
|
# cp -r ${FILES}/en_US/*.* ${GENROOT}/files/en_US
|
|
|
|
app_images:
|
|
# @echo ===Generating images
|
|
# mkdir -p ${GENROOT}/images
|
|
# @echo Using _96 dpi images for the @2x
|
|
# ./rename-strip-dpi.sh -suffize "@2x" ${GENROOT}/images ${APP_IMAGES}/*_96.*
|
|
# @echo Using _96 dpi scaled to 48 as the non-2x
|
|
# ./rename-strip-dpi.sh -resize 48 ${GENROOT}/images ${APP_IMAGES}/*_96.*
|
|
|
|
|
|
data_images:
|
|
# @echo ===Generating data images
|
|
# mkdir -p ${GENROOT}/images/data
|
|
# ./rename-strip-dpi.sh ${GENROOT}/images/data ${DATA_IMAGES}/*_96.*
|
|
|