mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 937224 - Part a: Move LOCAL_INCLUDES to moz.build in gfx/; r=mshal
This commit is contained in:
parent
fe5d5ddd33
commit
4c502efb62
@ -9,11 +9,6 @@ VPATH += $(srcdir)/src/compiler/preprocessor
|
||||
|
||||
# Target: 'translator_common'
|
||||
# Requires: 'preprocessor'
|
||||
LOCAL_INCLUDES += \
|
||||
-I$(srcdir)/include \
|
||||
-I$(srcdir)/include/KHR \
|
||||
-I$(srcdir)/src
|
||||
|
||||
VPATH += $(srcdir)/src/compiler
|
||||
VPATH += $(srcdir)/src/compiler/depgraph
|
||||
VPATH += $(srcdir)/src/compiler/timing
|
||||
|
@ -32,7 +32,6 @@ UNIFIED_SOURCES += ['src/compiler/preprocessor/' + src for src in [
|
||||
'Tokenizer.cpp',
|
||||
]]
|
||||
|
||||
|
||||
# Target: 'translator_common'
|
||||
# Requires: 'preprocessor'
|
||||
# src/compiler:
|
||||
@ -103,7 +102,6 @@ else:
|
||||
'src/compiler/ossource_posix.cpp',
|
||||
]
|
||||
|
||||
|
||||
# Target: 'translator_glsl'
|
||||
# Requires: 'translator_common'
|
||||
# src/compiler:
|
||||
@ -119,6 +117,12 @@ UNIFIED_SOURCES += ['src/compiler/' + src for src in [
|
||||
]]
|
||||
MSVC_ENABLE_PGO = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'include',
|
||||
'include/KHR',
|
||||
'src',
|
||||
]
|
||||
|
||||
if CONFIG['OS_TARGET'] == 'WINNT':
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
|
||||
|
@ -19,13 +19,6 @@ OS_COMPILE_CXXFLAGS = $(OS_CPPFLAGS)
|
||||
# Below is a transcription of the EGL target from build_angle.gypi.
|
||||
# Target: 'libEGL'
|
||||
# Links with: 'libGLESv2'
|
||||
LOCAL_INCLUDES = \
|
||||
-I$(srcdir)/../../include \
|
||||
-I$(srcdir)/../../include/KHR \
|
||||
-I$(srcdir)/.. \
|
||||
-I$(srcdir)/../libGLESv2 \
|
||||
-I"$(MOZ_DIRECTX_SDK_PATH)/include"
|
||||
|
||||
# src/common:
|
||||
VPATH += $(srcdir)/../common
|
||||
# src/libEGL:
|
||||
@ -35,6 +28,8 @@ RCFILE = $(srcdir)/libEGL.rc
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
CXXFLAGS += -I"$(MOZ_DIRECTX_SDK_PATH)/include"
|
||||
|
||||
#OS_LIBS += $(call EXPAND_LIBNAME,dwmapi)
|
||||
|
||||
ifdef GNU_CC
|
||||
|
@ -26,6 +26,14 @@ LIBRARY_NAME = 'libEGL'
|
||||
|
||||
FORCE_SHARED_LIB = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'..',
|
||||
'../../include',
|
||||
'../../include/KHR',
|
||||
'../libGLESv2',
|
||||
]
|
||||
|
||||
|
||||
for var in ('LIBEGL_EXPORTS', 'ANGLE_BUILD', 'NOMINMAX',
|
||||
'_CRT_SECURE_NO_DEPRECATE', 'ANGLE_DISABLE_TRACE'):
|
||||
DEFINES[var] = True
|
||||
|
@ -25,12 +25,6 @@ VPATH += $(srcdir)/../compiler/preprocessor
|
||||
|
||||
# Target: 'translator_common'
|
||||
# Requires: 'preprocessor'
|
||||
LOCAL_INCLUDES += \
|
||||
-I$(srcdir)/../../include \
|
||||
-I$(srcdir)/../../include/KHR \
|
||||
-I$(srcdir)/.. \
|
||||
-I"$(MOZ_DIRECTX_SDK_PATH)/include"
|
||||
|
||||
VPATH += $(srcdir)/renderer
|
||||
VPATH += $(srcdir)/..
|
||||
VPATH += $(srcdir)/../compiler
|
||||
@ -50,6 +44,8 @@ RCFILE = $(srcdir)/libGLESv2.rc
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
CXXFLAGS += -I"$(MOZ_DIRECTX_SDK_PATH)/include"
|
||||
|
||||
ifdef GNU_CC
|
||||
|
||||
TextureSSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
||||
|
@ -20,7 +20,6 @@ SOURCES += ['../compiler/preprocessor/' + src for src in [
|
||||
'Tokenizer.cpp',
|
||||
]]
|
||||
|
||||
|
||||
# Target: 'translator_common'
|
||||
# Requires: 'preprocessor'
|
||||
# src/compiler:
|
||||
@ -88,7 +87,6 @@ else:
|
||||
'../compiler/ossource_posix.cpp',
|
||||
]
|
||||
|
||||
|
||||
# Target: 'translator_hlsl'
|
||||
# Requires: 'translator_common'
|
||||
# src/compiler:
|
||||
@ -102,7 +100,6 @@ SOURCES += ['../compiler/' + src for src in [
|
||||
'UnfoldShortCircuit.cpp',
|
||||
]]
|
||||
|
||||
|
||||
# Target: 'libGLESv2'
|
||||
# Requires: 'translator_hlsl'
|
||||
# src/common:
|
||||
@ -180,6 +177,13 @@ LIBRARY_NAME = 'libGLESv2'
|
||||
|
||||
FORCE_SHARED_LIB = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'..',
|
||||
'../../include',
|
||||
'../../include/KHR',
|
||||
]
|
||||
|
||||
|
||||
for var in ('LIBGLESV2_EXPORTS', 'ANGLE_BUILD', 'NOMINMAX',
|
||||
'_CRT_SECURE_NO_DEPRECATE', 'ANGLE_DISABLE_TRACE',
|
||||
'COMPILER_IMPLEMENTATION'):
|
||||
|
@ -21,8 +21,6 @@ ifdef MOZ_ENABLE_CAIRO_FT
|
||||
OS_INCLUDES += $(CAIRO_FT_CFLAGS)
|
||||
endif
|
||||
|
||||
LOCAL_INCLUDES += -I$(srcdir)
|
||||
|
||||
INSTALL_TARGETS += cairo_features
|
||||
cairo_features_FILES := cairo-features.h
|
||||
cairo_features_DEST = $(DIST)/include/cairo
|
||||
|
@ -93,8 +93,6 @@ DEFINES += -DUSE_ARM_NEON
|
||||
ARM_NEON_CFLAGS = -mfpu=neon
|
||||
endif
|
||||
|
||||
LOCAL_INCLUDES += -I$(srcdir) -I$(srcdir)/../../cairo/src
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# Disable spammy "missing initializer" GCC warning
|
||||
|
@ -61,6 +61,10 @@ SOURCES += [
|
||||
MSVC_ENABLE_PGO = True
|
||||
|
||||
FINAL_LIBRARY = 'gkmedias'
|
||||
LOCAL_INCLUDES += [
|
||||
'../../cairo/src',
|
||||
]
|
||||
|
||||
|
||||
if CONFIG['MOZ_USE_PTHREADS']:
|
||||
DEFINES['HAVE_PTHREAD_SETSPECIFIC'] = True
|
||||
|
@ -2,13 +2,12 @@
|
||||
# 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/.
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
|
||||
LOCAL_INCLUDES = -I$(topsrcdir)/widget/gonk
|
||||
LOCAL_INCLUDES += -I$(ANDROID_SOURCE)/hardware/libhardware/include
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
|
||||
CXXFLAGS += -I$(ANDROID_SOURCE)/hardware/libhardware/include
|
||||
endif
|
||||
|
||||
DEFINES := $(filter-out -DUNICODE,$(DEFINES))
|
||||
|
||||
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) $(TK_CFLAGS)
|
||||
|
@ -72,6 +72,7 @@ if CONFIG['MOZ_ENABLE_SKIA_GPU']:
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
||||
UNIFIED_SOURCES += ['SharedSurfaceGralloc.cpp']
|
||||
EXPORTS += ['SharedSurfaceGralloc.h']
|
||||
LOCAL_INCLUDES += ['/widget/gonk']
|
||||
|
||||
if gl_provider == 'CGL':
|
||||
# This file includes Mac headers that are unfriendly to unified builds,
|
||||
|
@ -24,9 +24,6 @@
|
||||
# Mozilla author(s): Jonathan Kew
|
||||
#
|
||||
|
||||
LOCAL_INCLUDES += -I$(srcdir)
|
||||
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# Cancel the effect of the -DDEBUG macro if present,
|
||||
|
@ -17,8 +17,7 @@ VPATH = \
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
LOCAL_INCLUDES += \
|
||||
-I$(topsrcdir)/content/events/src \
|
||||
CXXFLAGS += \
|
||||
-I$(ANDROID_SOURCE)/frameworks/base/include/media/stagefright \
|
||||
-I$(ANDROID_SOURCE)/frameworks/base/include/media/stagefright/openmax \
|
||||
-I$(ANDROID_SOURCE)/frameworks/av/include/media/stagefright \
|
||||
|
@ -294,6 +294,10 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'thebes'
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/content/events/src',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_DEBUG']:
|
||||
DEFINES['D3D_DEBUG_INFO'] = True
|
||||
|
||||
|
@ -3,30 +3,6 @@
|
||||
# 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/.
|
||||
|
||||
LOCAL_INCLUDES += \
|
||||
-I$(srcdir)/include/core \
|
||||
-I$(srcdir)/include/config \
|
||||
-I$(srcdir)/include/gpu \
|
||||
-I$(srcdir)/include/pipe \
|
||||
-I$(srcdir)/include/ports \
|
||||
-I$(srcdir)/include/images \
|
||||
-I$(srcdir)/include/lazy \
|
||||
-I$(srcdir)/include/utils \
|
||||
-I$(srcdir)/include/utils/mac \
|
||||
-I$(srcdir)/include/utils/win \
|
||||
-I$(srcdir)/include/views \
|
||||
-I$(srcdir)/include/effects \
|
||||
-I$(srcdir)/src/core \
|
||||
-I$(srcdir)/src/image \
|
||||
-I$(srcdir)/src/gpu \
|
||||
-I$(srcdir)/src/gpu/effects \
|
||||
-I$(srcdir)/src/gpu/gl \
|
||||
-I$(srcdir)/src/lazy \
|
||||
-I$(srcdir)/src/utils \
|
||||
-I$(srcdir)/src/utils/android \
|
||||
-I$(srcdir)/src/sfnt \
|
||||
$(NULL)
|
||||
|
||||
VPATH += \
|
||||
$(srcdir)/src/core \
|
||||
$(srcdir)/src/gpu \
|
||||
|
@ -590,6 +590,30 @@ if not CONFIG['INTEL_ARCHITECTURE'] and CONFIG['CPU_ARCH'] == 'arm' and CONFIG['
|
||||
MSVC_ENABLE_PGO = True
|
||||
|
||||
FINAL_LIBRARY = 'gkmedias'
|
||||
LOCAL_INCLUDES += [
|
||||
'include/config',
|
||||
'include/core',
|
||||
'include/effects',
|
||||
'include/gpu',
|
||||
'include/images',
|
||||
'include/lazy',
|
||||
'include/pipe',
|
||||
'include/ports',
|
||||
'include/utils',
|
||||
'include/utils/mac',
|
||||
'include/utils/win',
|
||||
'include/views',
|
||||
'src/core',
|
||||
'src/gpu',
|
||||
'src/gpu/effects',
|
||||
'src/gpu/gl',
|
||||
'src/image',
|
||||
'src/lazy',
|
||||
'src/sfnt',
|
||||
'src/utils',
|
||||
'src/utils/android',
|
||||
]
|
||||
|
||||
|
||||
DEFINES['SK_A32_SHIFT'] = 24
|
||||
DEFINES['SK_R32_SHIFT'] = 16
|
||||
|
@ -7,10 +7,4 @@ VPATH = @srcdir@ $(srcdir)/$(DEPTH)/gfx/2d/unittest
|
||||
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) $(TK_CFLAGS)
|
||||
|
||||
# Create a GTest library
|
||||
LOCAL_INCLUDES = \
|
||||
-I$(topsrcdir)/gfx/layers \
|
||||
-I$(topsrcdir)/gfx/2d \
|
||||
-I$(topsrcdir)/gfx/2d/unittest \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -42,3 +42,9 @@ EXPORT_LIBRARY = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/gfx/2d',
|
||||
'/gfx/2d/unittest',
|
||||
'/gfx/layers',
|
||||
]
|
||||
|
||||
|
@ -2,10 +2,6 @@
|
||||
# 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/.
|
||||
|
||||
LOCAL_INCLUDES += \
|
||||
-I$(topsrcdir)/content/xml/document/src \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
||||
ACDEFINES += -UWIN32_LEAN_AND_MEAN
|
||||
endif
|
||||
|
@ -300,6 +300,10 @@ GENERATED_FILES = [
|
||||
'PremultiplyTables.h',
|
||||
]
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/content/xml/document/src',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk2', 'gtk3', 'gonk', 'qt'):
|
||||
DEFINES['MOZ_ENABLE_FREETYPE'] = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user