shithub: openh264

Download patch

ref: 7f6cdb516d59d7abe265c7e25bc1cc5a469d9665
parent: 46e6bb5c67fc5f4634246c0cf158bead2d09a6fa
author: Martin Storsjö <[email protected]>
date: Fri Dec 27 19:01:38 EST 2013

Add platform files for msvc and msvc-arm

Build with "make UNAME=msvc" to invoke this.

--- /dev/null
+++ b/build/platform-msvc-arm.mk
@@ -1,0 +1,5 @@
+include build/platform-msvc-common.mk
+CFLAGS += -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -MD -DWIN32
+LDFLAGS +=
+USE_ASM = No
+
--- /dev/null
+++ b/build/platform-msvc-common.mk
@@ -1,0 +1,13 @@
+CXX=cl
+AR=lib
+CXX_O=-Fo$@
+CFLAGS += -nologo
+CXX_LINK_O=-nologo -Fe$@
+AR_OPTS=-nologo -out:$@
+CFLAGS_OPT=-O2
+CFLAGS_DEBUG=
+CFLAGS_M32=
+CFLAGS_M64=
+LINK_LIB=$(1).lib
+LIBSUFFIX=lib
+LIBPREFIX=
--- /dev/null
+++ b/build/platform-msvc.mk
@@ -1,0 +1,12 @@
+include build/platform-msvc-common.mk
+ASM = nasm
+LDFLAGS += user32.lib
+ifeq ($(ENABLE64BIT), Yes)
+ASMFLAGS += -f win64
+ASMFLAGS_PLATFORM = -DWIN64
+CFLAGS += -DWIN64
+else
+ASMFLAGS += -f win32 -DPREFIX
+CFLAGS += -DWIN32
+endif
+