39 lines
1.5 KiB
Python
39 lines
1.5 KiB
Python
################################################################################
|
|
# Copyright 2018 Google LLC.
|
|
#
|
|
# This software is licensed under the terms defined in the Widevine Master
|
|
# License Agreement. For a copy of this agreement, please contact
|
|
# widevine-licensing@google.com.
|
|
################################################################################
|
|
"""Installation file for the provisioning_session module."""
|
|
|
|
import provisioning_status
|
|
import setup_common as common
|
|
import setuptools
|
|
|
|
if __name__ == '__main__':
|
|
setuptools.setup(
|
|
name='provisioning_session',
|
|
ext_modules=[
|
|
setuptools.Extension(
|
|
name='provisioning_session',
|
|
sources=[
|
|
'%s/provisioning_session.cc' % common.SDK_SRC_DIR,
|
|
'%s/initprovisioning_session.cc' % common.SDK_SRC_DIR,
|
|
'%s/clif/python/runtime.cc' % common.CLIF_PREFIX,
|
|
'%s/clif/python/slots.cc' % common.CLIF_PREFIX,
|
|
'%s/clif/python/types.cc' % common.CLIF_PREFIX,
|
|
],
|
|
include_dirs=[
|
|
common.SDK_ROOT_DIR, common.GEN_DIR, common.CLIF_PREFIX, '/'
|
|
],
|
|
extra_compile_args=['-std=c++11'],
|
|
library_dirs=[common.SDK_LIBRARY_DIR],
|
|
libraries=['provisioning_sdk'],
|
|
runtime_library_dirs=[common.SDK_LIBRARY_DIR],
|
|
install_requires=['enum34;python_version<"3.4"'],
|
|
extra_objects=[provisioning_status.__file__],
|
|
),
|
|
],
|
|
)
|