2014-10-22 10:18:53 +03:00
|
|
|
include $(SRC_PATH)build/arch.mk
|
2014-04-11 10:48:37 +03:00
|
|
|
ifeq ($(ASM_ARCH), x86)
|
2015-04-20 11:47:41 +03:00
|
|
|
ifeq ($(ARCH), x86_64)
|
2014-04-11 10:48:37 +03:00
|
|
|
ASMFLAGS += -f win64
|
|
|
|
ASMFLAGS_PLATFORM = -DWIN64
|
|
|
|
else
|
|
|
|
ASMFLAGS += -f win32 -DPREFIX
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
endif
|
|
|
|
ifeq ($(ASM_ARCH), arm)
|
|
|
|
CCAS = gas-preprocessor.pl -as-type armasm -force-thumb -- armasm
|
2015-01-16 09:59:49 +02:00
|
|
|
CCASFLAGS = -nologo -DHAVE_NEON -ignore 4509
|
2014-04-11 10:48:37 +03:00
|
|
|
endif
|
|
|
|
|
2014-02-12 22:12:33 +02:00
|
|
|
CC=cl
|
2013-12-28 00:01:38 +02:00
|
|
|
CXX=cl
|
|
|
|
AR=lib
|
|
|
|
CXX_O=-Fo$@
|
2014-05-16 08:53:59 +03:00
|
|
|
# -D_VARIADIC_MAX=10 is required to fix building gtest on MSVC 2012, but
|
|
|
|
# since we don't (easily) know which version of MSVC we use here, we add
|
|
|
|
# it unconditionally. The same issue can also be worked around by adding
|
|
|
|
# -DGTEST_HAS_TR1_TUPLE=0 instead, but we prefer this version since it
|
|
|
|
# matches what gtest itself does.
|
2015-11-10 20:37:17 -08:00
|
|
|
CFLAGS += -nologo -W3 -EHsc -fp:precise -Zc:wchar_t -Zc:forScope -D_VARIADIC_MAX=10
|
2013-12-28 00:01:38 +02:00
|
|
|
CXX_LINK_O=-nologo -Fe$@
|
|
|
|
AR_OPTS=-nologo -out:$@
|
2014-04-09 18:46:42 -07:00
|
|
|
CFLAGS_OPT=-O2 -Ob1 -Oy- -Zi -GF -Gm- -GS -Gy -DNDEBUG
|
2014-07-09 15:13:41 +03:00
|
|
|
CFLAGS_DEBUG=-Od -Oy- -Zi -RTC1 -D_DEBUG
|
2013-12-28 00:01:38 +02:00
|
|
|
CFLAGS_M32=
|
|
|
|
CFLAGS_M64=
|
2014-07-02 12:31:55 +03:00
|
|
|
LINK_LOCAL_DIR=
|
2013-12-28 00:01:38 +02:00
|
|
|
LINK_LIB=$(1).lib
|
|
|
|
LIBSUFFIX=lib
|
|
|
|
LIBPREFIX=
|
2014-01-23 16:14:09 +02:00
|
|
|
EXEEXT=.exe
|
2014-03-18 11:21:46 +02:00
|
|
|
OBJ=obj
|
2014-12-01 14:24:50 +02:00
|
|
|
SHAREDLIB_DIR = $(PREFIX)/bin
|
2014-02-19 11:51:50 +02:00
|
|
|
SHAREDLIBSUFFIX=dll
|
2014-12-01 12:31:33 +02:00
|
|
|
SHAREDLIBSUFFIXVER=$(SHAREDLIBSUFFIX)
|
2014-02-19 11:51:50 +02:00
|
|
|
SHARED=-LD
|
2014-05-04 15:54:16 +03:00
|
|
|
EXTRA_LIBRARY=$(PROJECT_NAME)_dll.lib
|
2015-03-13 12:20:17 +02:00
|
|
|
LDFLAGS += -link
|
2016-01-19 17:03:50 +08:00
|
|
|
SHLDFLAGS=-debug -map -opt:ref -opt:icf -def:$(SRC_PATH)openh264.def -implib:$(EXTRA_LIBRARY)
|
2015-01-02 21:54:21 +02:00
|
|
|
STATIC_LDFLAGS=
|
2015-01-16 10:34:27 +02:00
|
|
|
CODEC_UNITTEST_CFLAGS=-D_CRT_SECURE_NO_WARNINGS
|
2015-04-20 11:08:59 +03:00
|
|
|
|
|
|
|
%.res: %.rc
|
2015-06-01 09:54:42 +02:00
|
|
|
$(QUIET_RC)rc -fo $@ $<
|