2014-07-09 07:20:14 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
#
|
|
|
|
# Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2014-07-10 04:04:19 +00:00
|
|
|
EMOJI = NotoColorEmoji
|
|
|
|
EMOJI_PNG128 = ./png/128/emoji_u
|
|
|
|
EMOJI_PNG64 = ./png/64/emoji_u
|
2014-07-09 07:20:14 +00:00
|
|
|
|
|
|
|
EMOJI_BUILDER = ../third_party/color_emoji/emoji_builder.py
|
|
|
|
ADD_GLYPHS= ../third_party/color_emoji/add_glyphs.py
|
2014-07-10 06:24:42 +00:00
|
|
|
PUA_ADDER = ../nototools/map_pua_emoji.py
|
2014-07-09 07:20:14 +00:00
|
|
|
|
|
|
|
%.ttx: %.ttx.tmpl $(ADD_GLYPHS) $(UNI)
|
2014-07-10 04:04:19 +00:00
|
|
|
python $(ADD_GLYPHS) "$<" "$@" "$(EMOJI_PNG128)"
|
2014-07-09 07:20:14 +00:00
|
|
|
|
|
|
|
%.ttf: %.ttx
|
|
|
|
@rm -f "$@"
|
|
|
|
ttx "$<"
|
|
|
|
|
2014-07-10 06:24:42 +00:00
|
|
|
$(EMOJI).ttf: $(EMOJI).tmpl.ttf $(EMOJI_BUILDER) $(PUA_ADDER) $(EMOJI_PNG128)*.png $(EMOJI_PNG64)*.png
|
2014-07-10 04:04:19 +00:00
|
|
|
python $(EMOJI_BUILDER) -V $< "$@" $(EMOJI_PNG128) $(EMOJI_PNG64)
|
2014-07-10 06:24:42 +00:00
|
|
|
python $(PUA_ADDER) "$@" "$@-with-pua"
|
|
|
|
mv "$@-with-pua" "$@"
|
2014-07-09 07:20:14 +00:00
|
|
|
|
|
|
|
clean:
|
2014-07-10 04:04:19 +00:00
|
|
|
rm -f $(EMOJI).ttf $(EMOJI).tmpl.ttf $(EMOJI).tmpl.ttx
|