File tree 2 files changed +34
-3
lines changed
2 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,29 @@ doc-upload: tar
340
340
scp -r out/doc/ $(STAGINGSERVER ) :staging/$(DISTTYPEDIR ) /$(FULLVERSION ) /
341
341
ssh $(STAGINGSERVER ) " touch staging/$( DISTTYPEDIR) /$( FULLVERSION) /doc.done"
342
342
343
+ $(TARBALL ) -headers : config.gypi release-only
344
+ $(PYTHON ) ./configure --prefix=/ --dest-cpu=$(DESTCPU ) --tag=$(TAG ) $(CONFIG_FLAGS )
345
+ HEADERS_ONLY=1 $(PYTHON ) tools/install.py install ' $(TARNAME)' ' $(PREFIX)'
346
+ find $(TARNAME ) / -type l | xargs rm # annoying on windows
347
+ tar -cf $(TARNAME ) -headers.tar $(TARNAME )
348
+ rm -rf $(TARNAME )
349
+ gzip -c -f -9 $(TARNAME ) -headers.tar > $(TARNAME ) -headers.tar.gz
350
+ ifeq ($(XZ ) , 0)
351
+ xz -c -f -$(XZ_COMPRESSION) $(TARNAME)-headers.tar > $(TARNAME)-headers.tar.xz
352
+ endif
353
+ rm $(TARNAME)-headers.tar
354
+
355
+ tar-headers : $(TARBALL ) -headers
356
+
357
+ tar-headers-upload : tar-headers
358
+ ssh $(STAGINGSERVER ) " mkdir -p staging/$( DISTTYPEDIR) /$( FULLVERSION) "
359
+ scp -p $(TARNAME ) -headers.tar.gz $(STAGINGSERVER ) :staging/$(DISTTYPEDIR ) /$(FULLVERSION ) /$(TARNAME ) -headers.tar.gz
360
+ ssh $(STAGINGSERVER ) " touch staging/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) -headers.tar.gz.done"
361
+ ifeq ($(XZ ) , 0)
362
+ scp -p $(TARNAME)-headers.tar.xz $(STAGINGSERVER):staging/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-headers.tar.xz
363
+ ssh $(STAGINGSERVER) "touch staging/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-headers.tar.xz.done"
364
+ endif
365
+
343
366
$(BINARYTAR ) : release-only
344
367
rm -rf $(BINARYNAME )
345
368
rm -rf out/deps out/Release
Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ def files(action):
156
156
157
157
if 'true' == variables .get ('node_install_npm' ): npm_files (action )
158
158
159
+ headers (action )
160
+
161
+ def headers (action ):
159
162
action ([
160
163
'common.gypi' ,
161
164
'config.gypi' ,
@@ -178,7 +181,6 @@ def files(action):
178
181
subdir_files ('deps/openssl/config/archs' , 'include/node/openssl/archs' , action )
179
182
action (['deps/openssl/config/opensslconf.h' ], 'include/node/openssl/' )
180
183
181
-
182
184
if 'false' == variables .get ('node_shared_zlib' ):
183
185
action ([
184
186
'deps/zlib/zconf.h' ,
@@ -207,8 +209,14 @@ def run(args):
207
209
install_path = dst_dir + node_prefix + '/'
208
210
209
211
cmd = args [1 ] if len (args ) > 1 else 'install'
210
- if cmd == 'install' : return files (install )
211
- if cmd == 'uninstall' : return files (uninstall )
212
+
213
+ if os .environ .get ('HEADERS_ONLY' ):
214
+ if cmd == 'install' : return headers (install )
215
+ if cmd == 'uninstall' : return headers (uninstall )
216
+ else :
217
+ if cmd == 'install' : return files (install )
218
+ if cmd == 'uninstall' : return files (uninstall )
219
+
212
220
raise RuntimeError ('Bad command: %s\n ' % cmd )
213
221
214
222
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments