|
|
@ -6,13 +6,14 @@ except ImportError:
|
|
|
|
use_setuptools()
|
|
|
|
use_setuptools()
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
from distutils.core import Extension
|
|
|
|
from distutils.core import Extension
|
|
|
|
|
|
|
|
from os import path
|
|
|
|
|
|
|
|
|
|
|
|
e = Extension("_pydfhack",
|
|
|
|
e = Extension("_pydfhack",
|
|
|
|
sources=["DF_API.cpp", "DF_Buildings.cpp", "DF_Constructions.cpp", "DF_CreatureManager.cpp", "DF_GUI.cpp", "DF_Maps.cpp", "DF_Material.cpp", "DF_Position.cpp", "DF_Translate.cpp", "DF_Vegetation.cpp", "pydfhack.cpp"],
|
|
|
|
sources=["DF_API.cpp", "DF_Buildings.cpp", "DF_Constructions.cpp", "DF_CreatureManager.cpp", "DF_GUI.cpp", "DF_Maps.cpp", "DF_Material.cpp", "DF_Position.cpp", "DF_Translate.cpp", "DF_Vegetation.cpp", "pydfhack.cpp"],
|
|
|
|
include_dirs=["../", "../include", "../depends/md5", "../depends/tinyxml"],
|
|
|
|
include_dirs=["../", path.join("..", "include"), path.join("..","depends","md5"), path.join("..","depends","tinyxml")],
|
|
|
|
library_dirs=["..\\..\\output"],
|
|
|
|
library_dirs=[path.join("..","..","output")],
|
|
|
|
#extra_compile_args=["-w"],
|
|
|
|
extra_compile_args=["-DLINUX_BUILD", "-w"],
|
|
|
|
libraries=["libdfhack"],
|
|
|
|
libraries=["dfhack"],
|
|
|
|
export_symbols=["init_pydfhack", "ReadRaw", "WriteRaw"])
|
|
|
|
export_symbols=["init_pydfhack", "ReadRaw", "WriteRaw"])
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
setup(
|
|
|
|