Newer
Older
Import / research / ui / toolkit / test / test.pro

TARGET     = Tweakables

TOOLKIT_PATH  = ../src

#				  FontManager.cpp

TOOLKIT_SOURCES = \
					PicoPNG.cpp \
				  TrueType.cpp \
					MemoryMapping.cpp \
					Graphics.cpp \
					Painter.cpp \
					Variant.cpp \
					Test.cpp \
					SignalSlot.cpp \
					Object.cpp \
					Reflection.cpp \
					Widget.cpp \
					Window.cpp \
					Application.cpp \
					CommonWidgets.cpp \
					UiBuilder.cpp \
					XmlParser.cpp

UNUSED_SOURCES = \
					Sounds.cpp \
					DateTime.cpp \
					Threads.cpp \
					Url.cpp \
					Containers.cpp \
					Network.cpp

DOCS_PATH = ../docs

DOCS = \
					FIXME.md \
					RULES.md

SOURCES = \
					$(patsubst %.cpp,$(TOOLKIT_PATH)/%.cpp,$(TOOLKIT_SOURCES)) \
					$(patsubst %.md,$(DOCS_PATH)/%.md,$(DOCS)) \
          Maths.cpp \
          quadtree.cpp \
          fontedit.cpp \
          formfactors.cpp \
          main.cpp

# INCLUDES   = -g -I../include
# DEFINES    = -DTEST --std=c++11
# LIBS       = -g -lstdc++ -framework AppKit -framework OpenGL

# INCLUDES   = -gstabs3 -I../include
# DEFINES    = -DTEST --std=c++11
# LIBS       = -gstabs3 -lstdc++ -framework AppKit -framework OpenGL

HEADERS_PATH = ../include

SEARCH_PATHS = $(TOOLKIT_PATH) $(DOCS_PATH) $(HEADERS_PATH)

# INCLUDES   = -O3 -I../include
# FLAGS      = -Os -emit-llvm   # Small options
FLAGS      = -O3 -Wno-deprecated-declarations    # Fast options
#-fdebug-info-for-profiling
DEFINES    = -DTEST -std=c++11 -fno-rtti -DNO_RTTI -fno-exceptions -DNO_EXCEPTIONS
LIBS       = -lstdc++ -framework AppKit -framework OpenGL -framework CoreVideo


# LIBS       += -Wl,-X -Wl,-x -static -s -static-libgcc -Wl,-static

# DEFINES    = -DUNICODE -Os -s -static -ffunction-sections -fdata-sections
# LIBS       = -Llib -static -s -static-libgcc
# -Wl,-X -Wl,-x -static -s -static-libgcc -Wl,-static
# -ffunction-sections -fdata-sections -Wl,-subsystem,windows