Fix build

Fix the paths after repo split.
pull/4/head
Khaled Hosny 2015-06-19 18:34:08 +02:00
parent f7abf9645c
commit e58a66978a
5 changed files with 11 additions and 10 deletions

View File

@ -18,7 +18,7 @@ font: $(EMOJI).ttf
CFLAGS = -std=c99 -Wall -Wextra `pkg-config --cflags --libs cairo`
LDFLAGS = `pkg-config --libs cairo`
PNGQUANTDIR := $(abspath `pwd`/../../third_party/pngquant)
PNGQUANTDIR := $(abspath `pwd`/../third_party/pngquant)
PNGQUANT := $(PNGQUANTDIR)/pngquant
PNGQUANTFLAGS = --speed 1 --skip-if-larger --ext '.png' --force
@ -55,7 +55,7 @@ FLAGS = AD AE AF AG AI AL AM AO AR AS AT AU AW AX AZ \
YE \
ZA ZM ZW
FLAGS_SRC_DIR = ../third_party/region-flags/png
FLAGS_SRC_DIR = third_party/region-flags/png
FLAGS_DIR = ./flags
glyph_name = $(shell ./flag_glyph_name.py $(flag))
@ -76,9 +76,9 @@ $(PNG128_FLAGS): flag-symlinks
EMOJI_PNG128 = ./png/128/emoji_u
EMOJI_BUILDER = ../third_party/color_emoji/emoji_builder.py
ADD_GLYPHS = ../third_party/color_emoji/add_glyphs.py
PUA_ADDER = ../nototools/map_pua_emoji.py
EMOJI_BUILDER = third_party/color_emoji/emoji_builder.py
ADD_GLYPHS = third_party/color_emoji/add_glyphs.py
PUA_ADDER = map_pua_emoji.py
%.ttx: %.ttx.tmpl $(ADD_GLYPHS) $(UNI) flag-symlinks
python $(ADD_GLYPHS) "$<" "$@" "$(EMOJI_PNG128)"

View File

@ -33,8 +33,8 @@ from fontTools.ttLib.tables import otTables
from fontTools.ttLib.tables import _g_l_y_f
from fontTools.ttLib.tables import S_V_G_ as SVG
from fontTools import ttx
from nototools import add_emoji_gsub
import add_emoji_gsub
import svg_builder
import svg_cleaner

View File

@ -20,7 +20,7 @@ __author__ = 'roozbeh@google.com (Roozbeh Pournader)'
import sys
from nototools import add_emoji_gsub
import add_emoji_gsub
def two_letter_code_to_glyph_name(iso_code):
return 'u%04x_%04x' % (

View File

@ -22,9 +22,10 @@ import sys
from fontTools import ttLib
from nototools import add_emoji_gsub
from nototools import font_data
import add_emoji_gsub
def get_glyph_name_from_gsub(char_seq, font):
"""Find the glyph name for ligature of a given character sequence from GSUB.

View File

@ -5,8 +5,8 @@ from fontTools import ttx
from fontTools.ttLib.tables import otTables
from png import PNG
sys.path.append('../../nototools')
from nototools import add_emoji_gsub
sys.path.append('../../')
import add_emoji_gsub
def glyph_name(string):