pyd / Tuprules.tup

Diff from to

Tuprules.tup

 #DC=gdc
 
 ifeq ($(DC),dmd)
-DVERSION = -version=
-DFLAGS = -unittest -property
-DOUT = -of
-export DOUT
-DINCLUDE = -I
-DC_LIB = -L-l
+    DVERSION = -version=
+    DFLAGS = -unittest -property
+    DOUT = -of
+    DINCLUDE = -I
+    DC_LIB = -L-l
 else
 ifeq ($(DC),ldc2)
-DVERSION = -d-version=
-DOUT = -of 
-DINCLUDE = -I
-DC_LIB = -L-l
+    DVERSION = -d-version=
+    DOUT = -of 
+    DINCLUDE = -I
+    DC_LIB = -L-l
 else
 ifeq ($(DC),gdc)
-# todo
-DVERSION = -version=
-DOUT = -o 
-DINCLUDE = -I
-DC_LIB = -l
+    # todo
+    DVERSION = -version=
+    DOUT = -o 
+    DINCLUDE = -I
+    DC_LIB = -l
 endif
 endif
 endif
 PY32_VERSION += $(DVERSION)Python_3_1_Or_Later 
 PY32_VERSION += $(DVERSION)Python_3_2_Or_Later 
 
-PY24_LIB = $(DC_LIB)python2.4
-PY25_LIB = $(DC_LIB)python2.5
-PY26_LIB = $(DC_LIB)python2.6
-PY27_LIB = $(DC_LIB)python2.7
-PY32_LIB = $(DC_LIB)python3.2mu
 
 TOPDIR = $(TUP_CWD)
-PYD_FILES += $(TOPDIR)/infrastructure/deimos/python/*.d
-PYD_FILES += $(TOPDIR)/infrastructure/pyd/*.d
-PYD_FILES += $(TOPDIR)/infrastructure/meta/*.d
-PYD_FILES += $(TOPDIR)/infrastructure/util/*.d
 
-PYD_INCLUDE = $(DINCLUDE)$(TOPDIR)/infrastructure
+ifeq (@(TUP_PLATFORM),win32)
+    LIB = lib
+    OBJ = obj
+    EXE = exe
+    S = \\
+
+    LIBS_24 += $(TOPDIR)\infrastructure\python\python24_digitalmars.lib
+    LIBS_25 += $(TOPDIR)\infrastructure\python\python25_digitalmars.lib
+    LIBS_26 += $(TOPDIR)\infrastructure\python\python26_digitalmars.lib
+    LIBS_27 += $(TOPDIR)\infrastructure\python\python27_digitalmars.lib
+    LIBS_32 += $(TOPDIR)\infrastructure\python\python32_digitalmars.lib
+
+    PY24_VERSION += $(DVERSION)Python_Unicode_UCS2
+    PY25_VERSION += $(DVERSION)Python_Unicode_UCS2
+    PY26_VERSION += $(DVERSION)Python_Unicode_UCS2
+    PY27_VERSION += $(DVERSION)Python_Unicode_UCS2
+    PY32_VERSION += $(DVERSION)Python_Unicode_UCS2
+
+    RM = del
+else
+    LIB = a
+    OBJ = o
+    EXE = x
+    S = /
+    LIBS_24 += $(DC_LIB)python2.4
+    LIBS_25 += $(DC_LIB)python2.5
+    LIBS_26 += $(DC_LIB)python2.6
+    LIBS_27 += $(DC_LIB)python2.7
+    LIBS_32 += $(DC_LIB)python3.2mu
+
+    RM = rm -f
+endif
+LIBS_24 += $(TOPDIR)$(S)pyd24.$(LIB)
+LIBS_25 += $(TOPDIR)$(S)pyd25.$(LIB)
+LIBS_26 += $(TOPDIR)$(S)pyd26.$(LIB)
+LIBS_27 += $(TOPDIR)$(S)pyd27.$(LIB)
+LIBS_32 += $(TOPDIR)$(S)pyd32.$(LIB)
+PYD_FILES += $(TOPDIR)$(S)infrastructure$(S)deimos$(S)python$(S)*.d
+PYD_FILES += $(TOPDIR)$(S)infrastructure$(S)pyd$(S)*.d
+PYD_FILES += $(TOPDIR)$(S)infrastructure$(S)meta$(S)*.d
+PYD_FILES += $(TOPDIR)$(S)infrastructure$(S)util$(S)*.d
+
+PYD_INCLUDE = $(DINCLUDE)$(TOPDIR)$(S)infrastructure
 
 #dc_py24
 #dc_py25
 #dc_py26
-!dc_py27 = | $(TOPDIR)/pyd27.a |> $(DC) $(DFLAGS) $(PY27_VERSION) $(PY27_LIB) $(PYD_INCLUDE) %f $(TOPDIR)/pyd27.a -of%o && rm -f %B.o |> %B.x
-!dc_py32 = | $(TOPDIR)/pyd32.a |> $(DC) $(DFLAGS) $(PY32_VERSION) $(PY32_LIB) $(PYD_INCLUDE) %f $(TOPDIR)/pyd32.a -of%o && rm -f %B.o |> %B.x
+!dc_py27 = | $(TOPDIR)$(S)pyd27.$(LIB) |> $(DC) $(DFLAGS) $(PY27_VERSION) $(PYD_INCLUDE) %f $(LIBS_27) -of%o && $(RM) %B.$(OBJ) |> %B.$(EXE)
+!dc_py32 = | $(TOPDIR)$(S)pyd32.$(LIB) |> $(DC) $(DFLAGS) $(PY32_VERSION) $(PYD_INCLUDE) %f $(LIBS_32) -of%o && $(RM) %B.$(OBJ) |> %B.$(EXE)
 #dc_py32
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.