2012-07-25 09:13:45 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2010-07-14 20:52:34 -07:00
|
|
|
|
2011-12-14 21:40:23 -08:00
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
|
|
|
VISIBILITY_FLAGS =
|
|
|
|
endif
|
2010-07-14 20:52:34 -07:00
|
|
|
|
2013-01-24 06:21:01 -08:00
|
|
|
# The below is a rough translation of build_angle.gypi:
|
|
|
|
DEFINES += -DANGLE_DISABLE_TRACE
|
2013-05-13 05:12:37 -07:00
|
|
|
DEFINES += -DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1
|
2010-07-14 20:52:34 -07:00
|
|
|
|
2013-01-24 06:21:01 -08:00
|
|
|
# Target: 'preprocessor'
|
|
|
|
# src/compiler/preprocessor:
|
2010-07-14 20:52:34 -07:00
|
|
|
VPATH += $(srcdir)/src/compiler/preprocessor
|
2013-01-24 06:21:01 -08:00
|
|
|
|
|
|
|
# Target: 'translator_common'
|
|
|
|
# Requires: 'preprocessor'
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(srcdir)/include \
|
|
|
|
-I$(srcdir)/include/KHR \
|
|
|
|
-I$(srcdir)/src
|
|
|
|
|
|
|
|
DEFINES += -DCOMPILER_IMPLEMENTATION
|
2010-07-14 20:52:34 -07:00
|
|
|
|
2013-01-24 06:21:01 -08:00
|
|
|
VPATH += $(srcdir)/src/compiler
|
|
|
|
VPATH += $(srcdir)/src/compiler/depgraph
|
|
|
|
VPATH += $(srcdir)/src/compiler/timing
|
2013-05-13 05:12:37 -07:00
|
|
|
VPATH += $(srcdir)/src/third_party/compiler
|
2013-09-06 17:24:36 -07:00
|
|
|
VPATH += $(srcdir)/src/third_party/murmurhash
|
2010-07-15 12:49:09 -07:00
|
|
|
|
2013-01-24 06:21:01 -08:00
|
|
|
# Target: 'translator_glsl'
|
|
|
|
# Requires: 'translator_common'
|
|
|
|
# src/compiler:
|
2012-07-25 09:13:45 -07:00
|
|
|
ifdef MOZ_ANGLE_RENDERER
|
2010-12-03 14:44:01 -08:00
|
|
|
|
2013-01-24 14:48:17 -08:00
|
|
|
libs::
|
2012-09-19 01:58:31 -07:00
|
|
|
ifdef MOZ_D3DCOMPILER_CAB
|
2011-03-29 15:16:39 -07:00
|
|
|
expand "$(MOZ_D3DCOMPILER_CAB)" -F:$(MOZ_D3DCOMPILER_DLL) "$(DIST)/bin"
|
2012-09-19 01:58:31 -07:00
|
|
|
endif
|
2010-10-09 12:44:25 -07:00
|
|
|
|
|
|
|
endif
|
2011-03-29 15:16:39 -07:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2013-01-24 06:21:01 -08:00
|
|
|
# We have to filter out -pedantic, because of
|
|
|
|
# comma-at-end-of-enumerator list failures. We can try to get this fixed
|
|
|
|
# upstream at some point.
|
|
|
|
CXXFLAGS := $(filter-out -pedantic,$(CXXFLAGS))
|
|
|
|
CFLAGS := $(filter-out -pedantic,$(CFLAGS))
|