summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-04-24 09:45:00 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-04-24 16:18:23 -0700
commit95613bd7dde7c15669022f69b7f9e611054873c1 (patch)
tree80a1d02311d3882e16b67663f0254fb50e975878 /Makefile
parent7a1d62dc302013e9a6a0be8cde7f2a71e64b5589 (diff)
downloadqtlocation-mapboxgl-95613bd7dde7c15669022f69b7f9e611054873c1.tar.gz
[ios, osx] Made OS X SDK localizable
Replaced the iOS-specific ilocalize make rule with a genstrings make rule that creates iOS, OS X, and shared strings files. Moved the override English .stringsdict file under darwin/resources/. Made the default OS X callout view XIB localizable. Made some hard-coded strings in the OS X SDK source localizable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 96598011a9..6c2e58ff94 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,14 @@ test-osx: osx node_modules/express
-configuration $(BUILDTYPE) \
-workspace $(OSX_WORK_PATH) -scheme CI test | xcpretty
+genstrings:
+ genstrings -u -o platform/osx/sdk/Base.lproj platform/darwin/src/*.{m,mm}
+ genstrings -u -o platform/osx/sdk/Base.lproj platform/osx/src/*.{m,mm}
+ genstrings -u -o platform/ios/resources/Base.lproj platform/ios/src/*.{m,mm}
+ mv platform/osx/sdk/Base.lproj/Foundation.strings platform/darwin/resources/Base.lproj/
+ -find platform/{darwin,ios,osx}/ -path '*/Base.lproj/*.strings' -exec \
+ textutil -convert txt -extension strings -inputencoding UTF-16 -encoding UTF-8 {} \;
+
#### iOS targets ##############################################################
IOS_OUTPUT_PATH = build/ios
@@ -125,12 +133,6 @@ ifabric: $(IOS_PROJ_PATH)
idocument:
OUTPUT=$(OUTPUT) ./platform/ios/scripts/document.sh
-ilocalize:
- genstrings -u -o platform/ios/resources/Base.lproj platform/darwin/src/*.{m,mm}
- genstrings -u -o platform/ios/resources/Base.lproj platform/ios/src/*.{m,mm}
- -find platform/ios/ -path '*/Base.lproj/*.strings' -exec \
- textutil -convert txt -extension strings -inputencoding UTF-16 -encoding UTF-8 {} \;
-
#### Android targets #####################################################
# Builds a particular android architecture.