Skip to content

Instantly share code, notes, and snippets.

@kmaglione
Created September 24, 2011 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmaglione/1239685 to your computer and use it in GitHub Desktop.
Save kmaglione/1239685 to your computer and use it in GitHub Desktop.
ifeq "$(shell uname -s)" "Darwin"
PYTHON=python
ABI_ARCH = x86_64
ifeq "$(GECKO_MAJOR)" ""
GECKO_MAJOR = 9
endif
GECKO_MINOR = 0
ifeq "$(GECKO_MAJOR)" "9"
GECKO_SDK_PATH = $(HOME)/testing/xr
else
GECKO_SDK_PATH = $(HOME)/testing/xr$(GECKO_MAJOR)
#XPIDL = xpidl() { m=$1; f=${1%.idl}; f=${f%.h}; shift; $(GECKO_SDK_PATH)/bin/xpidl -m "$m" -o "$f" "$@"; }; xpidl
#IDL_H = $(XPIDL) header
XPIDL = $(PYTHON) $(HOME)/testing/xr/sdk/bin
endif
else
ABI_OS = WINNT
ABI_ARCH = x86
ABI_COMPILER = msvc
CXX = cl -Fo
LINK = link -dll -out:
MKDEP = true
ifeq "$(GECKO_MAJOR)" ""
GECKO_MAJOR = 9
endif
GECKO_MINOR = 0
ifeq "$(GECKO_MAJOR)" "9"
SDK = xrw
else
SDK = xr$(GECKO_MAJOR)w
XPIDL = xpidl() { m=$$1; shift; f=$${1%.idl}; f=$${f%.h}; shift; $(GECKO_SDK_PATH)/bin/xpidl -m "$$m" -o "$$f" "$$@"; }; xpidl
IDL_H = $(XPIDL) header
endif
GECKO_SDK_PATH = /e/testing/$(SDK)
LIB := e:\testing\$(SDK)\lib;$(LIB)
export LIB
EXCPPFLAGS = -O2 -DWIN32
GECKO_LDFLAGS = xpcomglue_s.lib \
xpcom.lib \
nspr4.lib \
mozalloc.lib \
xul.lib \
mozjs.lib \
$(NULL)
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment