2012-07-25 20:13:45 +04: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-15 07:52:34 +04:00
|
|
|
|
2013-01-24 18:21:01 +04:00
|
|
|
DEPTH = @DEPTH@
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2010-07-15 07:52:34 +04:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2013-05-16 17:33:26 +04:00
|
|
|
MSVC_ENABLE_PGO := 1
|
2013-01-24 18:21:01 +04:00
|
|
|
LIBXUL_LIBRARY = 1
|
2011-12-15 09:40:23 +04:00
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
|
|
|
VISIBILITY_FLAGS =
|
|
|
|
endif
|
2010-07-15 07:52:34 +04:00
|
|
|
|
2013-01-24 18:21:01 +04:00
|
|
|
# The below is a rough translation of build_angle.gypi:
|
|
|
|
DEFINES += -DANGLE_DISABLE_TRACE
|
2013-05-13 16:12:37 +04:00
|
|
|
DEFINES += -DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1
|
2010-07-15 07:52:34 +04:00
|
|
|
|
2013-01-24 18:21:01 +04:00
|
|
|
# Target: 'preprocessor'
|
|
|
|
# src/compiler/preprocessor:
|
2010-07-15 07:52:34 +04:00
|
|
|
VPATH += $(srcdir)/src/compiler/preprocessor
|
2013-01-24 18:21:01 +04:00
|
|
|
|
|
|
|
# Target: 'translator_common'
|
|
|
|
# Requires: 'preprocessor'
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(srcdir)/include \
|
|
|
|
-I$(srcdir)/include/KHR \
|
|
|
|
-I$(srcdir)/src
|
|
|
|
|
|
|
|
DEFINES += -DCOMPILER_IMPLEMENTATION
|
2010-07-15 07:52:34 +04:00
|
|
|
|
2013-01-24 18:21:01 +04:00
|
|
|
VPATH += $(srcdir)/src/compiler
|
|
|
|
VPATH += $(srcdir)/src/compiler/depgraph
|
|
|
|
VPATH += $(srcdir)/src/compiler/timing
|
2013-05-13 16:12:37 +04:00
|
|
|
VPATH += $(srcdir)/src/third_party/compiler
|
2010-07-15 23:49:09 +04:00
|
|
|
|
2013-01-24 18:21:01 +04:00
|
|
|
# Target: 'translator_glsl'
|
|
|
|
# Requires: 'translator_common'
|
|
|
|
# src/compiler:
|
2012-07-25 20:13:45 +04:00
|
|
|
ifdef MOZ_ANGLE_RENDERER
|
2010-12-04 01:44:01 +03:00
|
|
|
|
2013-01-25 02:48:17 +04:00
|
|
|
libs::
|
2012-09-19 12:58:31 +04:00
|
|
|
ifdef MOZ_D3DCOMPILER_CAB
|
2011-03-30 02:16:39 +04:00
|
|
|
expand "$(MOZ_D3DCOMPILER_CAB)" -F:$(MOZ_D3DCOMPILER_DLL) "$(DIST)/bin"
|
2012-09-19 12:58:31 +04:00
|
|
|
endif
|
2010-10-09 23:44:25 +04:00
|
|
|
|
|
|
|
endif
|
2011-03-30 02:16:39 +04:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2013-01-24 18:21:01 +04: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))
|