From 6099a79ef6397ca80cc892fecbfe7faf5b49cb00 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 21 Apr 2014 18:59:33 +1000 Subject: Move images to the base directory, and point all the special EFL directories to the base. --- build.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'build.lua') diff --git a/build.lua b/build.lua index c7177fa..4e37af0 100755 --- a/build.lua +++ b/build.lua @@ -71,18 +71,15 @@ CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-evas') CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-file') CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'edje') CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') --- TODO - The workingDir part of these strings gets set differently depending on who starts the build. --- Which is a problem for the PACKAGE_*_DIR defines. --- On the other hand, that part needs to be rethought anyway, coz otherwise they are locked to the build place. -CFLAGS = CFLAGS .. ' -DPACKAGE_BIN_DIR=\\"' .. workingDir .. '\\"' -CFLAGS = CFLAGS .. ' -DPACKAGE_LIB_DIR=\\"' .. workingDir .. '\\"' -CFLAGS = CFLAGS .. ' -DPACKAGE_DATA_DIR=\\"' .. workingDir .. '\\"' +CFLAGS = CFLAGS .. ' -DPACKAGE_BIN_DIR=\\"' .. baseDir .. '\\"' +CFLAGS = CFLAGS .. ' -DPACKAGE_LIB_DIR=\\"' .. baseDir .. '\\"' +CFLAGS = CFLAGS .. ' -DPACKAGE_DATA_DIR=\\"' .. baseDir .. '\\"' CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS LDFLAGS = '-L ' .. baseDir .. '/libraries ' .. pkgConfig('libs-only-L', 'luajit') .. ' -L /usr/lib -L /lib' libs = '-lLumbrJack -lRunnr ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lpthread -lm' LFLAGS = '-d' -EDJE_FLAGS = '-id images -fd fonts' +EDJE_FLAGS = '-id ' .. baseDir .. '/images -fd ' .. baseDir .. '/fonts' if 'nil' == type(args) then -- cgit v1.1