51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# Generate strings, images and files for Cocoa
|
|
|
|
include ../masterbuild/platform.mk
|
|
|
|
GENROOT = gen/cocoa
|
|
FORMAT = cocoa
|
|
STRINGS_EN_US = gen/strings/strings_en_US.json
|
|
FILES = src/files
|
|
# APP_IMAGES = src/images/app
|
|
# DATA_IMAGES = src/images/data
|
|
|
|
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}
|
|
mkdir -p ${GENROOT}/en.lproj
|
|
ant replaceStrings
|
|
|
|
compile: init ${GENROOT}/en.lproj/Localizable.strings files # app_images data_images
|
|
|
|
install: compile
|
|
@echo todo
|
|
#cp -R ${GENROOT}/ ../smo-android
|
|
|
|
${GENROOT}/en.lproj/Localizable.strings: ${STRINGS_EN_US}
|
|
@echo ===Generate $@ from $<
|
|
${LSPROG} --output=$@ $<
|
|
|
|
files:
|
|
@echo ===Copy ${FILES} to ${GENROOT}/en.lproj
|
|
cp -r ${FILES}/en_US/*.* ${GENROOT}/en.lproj
|
|
|
|
# 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.*
|
|
|