Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 531734
Collapse All | Expand All

(-)a/setup_libuv.py (-20 / +1 lines)
Lines 115-140 class libuv_build_ext(build_ext): Link Here
115
        self.libuv_verbose_build = 0
115
        self.libuv_verbose_build = 0
116
116
117
    def build_extensions(self):
117
    def build_extensions(self):
118
        self.force = self.libuv_force_fetch or self.libuv_clean_compile
118
        self.compiler.add_library('uv')
119
        if sys.platform == 'win32':
120
            self.libuv_lib = os.path.join(self.libuv_dir, 'Release', 'lib', 'libuv.lib')
121
        else:
122
            self.libuv_lib = os.path.join(self.libuv_dir, '.libs', 'libuv.a')
123
        self.get_libuv()
124
        # Set compiler options
125
        self.extensions[0].extra_objects.extend([self.libuv_lib])
126
        self.compiler.add_include_dir(os.path.join(self.libuv_dir, 'include'))
127
        if sys.platform.startswith('linux'):
128
            self.compiler.add_library('rt')
129
        elif sys.platform == 'win32':
130
            self.extensions[0].define_macros.append(('WIN32', 1))
131
            self.extensions[0].extra_link_args.extend(['/NODEFAULTLIB:libcmt', '/LTCG'])
132
            self.compiler.add_library('advapi32')
133
            self.compiler.add_library('iphlpapi')
134
            self.compiler.add_library('psapi')
135
            self.compiler.add_library('ws2_32')
136
        elif sys.platform.startswith('freebsd'):
137
            self.compiler.add_library('kvm')
138
        build_ext.build_extensions(self)
119
        build_ext.build_extensions(self)
139
120
140
    def get_libuv(self):
121
    def get_libuv(self):

Return to bug 531734