Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
4
my-app/node_modules/nice-napi/.esm-wrapper.mjs
generated
vendored
Executable file
4
my-app/node_modules/nice-napi/.esm-wrapper.mjs
generated
vendored
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
import mod from "./index.js";
|
||||
|
||||
export default mod;
|
||||
export const nice = mod.nice;
|
||||
13
my-app/node_modules/nice-napi/.taprc
generated
vendored
Executable file
13
my-app/node_modules/nice-napi/.taprc
generated
vendored
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
check-coverage: true
|
||||
color: true
|
||||
coverage: true
|
||||
coverage-report:
|
||||
- html
|
||||
- text
|
||||
jobs: 2
|
||||
no-browser: true
|
||||
test-env: TS_NODE_PROJECT=test/tsconfig.json
|
||||
test-ignore: $.
|
||||
test-regex: ((\/|^)(tests?|__tests?__)\/.*|\.(tests?|spec)|^\/?tests?)\.([mc]js|[jt]sx?)$
|
||||
timeout: 60
|
||||
ts: true
|
||||
37
my-app/node_modules/nice-napi/.travis.yml
generated
vendored
Executable file
37
my-app/node_modules/nice-napi/.travis.yml
generated
vendored
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
sudo: false
|
||||
|
||||
env:
|
||||
- CXX=clang++ npm_config_v8_enable_pointer_compression=0 npm_config_v8_enable_31bit_smis_on_64bit_arch=0
|
||||
|
||||
language: node_js
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
osx_image: xcode10
|
||||
|
||||
node_js:
|
||||
- "10"
|
||||
- "12"
|
||||
- "14"
|
||||
|
||||
install:
|
||||
- npm install --build-from-source
|
||||
|
||||
before_deploy:
|
||||
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
|
||||
- npm run prebuildify
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ARCH=ia32 npm run prebuildify; fi
|
||||
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
draft: false
|
||||
prerelease: true
|
||||
file: "$ARCHIVE_NAME"
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
node: 12
|
||||
api_key: $PREBUILD_GITHUB_TOKEN
|
||||
21
my-app/node_modules/nice-napi/LICENSE
generated
vendored
Executable file
21
my-app/node_modules/nice-napi/LICENSE
generated
vendored
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Anna Henningsen
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
8
my-app/node_modules/nice-napi/README.md
generated
vendored
Executable file
8
my-app/node_modules/nice-napi/README.md
generated
vendored
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
# nice-napi – nice(2) bindings for Node.js
|
||||
|
||||
https://linux.die.net/man/2/nice as a JS function. That’s it, that’s the module.
|
||||
|
||||
```js
|
||||
const nice = require('nice-napi');
|
||||
nice(5); // Increase niceness by 5.
|
||||
```
|
||||
22
my-app/node_modules/nice-napi/binding.cc
generated
vendored
Executable file
22
my-app/node_modules/nice-napi/binding.cc
generated
vendored
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#include <napi.h>
|
||||
#include <unistd.h>
|
||||
|
||||
using namespace Napi;
|
||||
|
||||
Value Nice(const CallbackInfo& args) {
|
||||
int32_t inc = args[0].ToNumber();
|
||||
errno = 0;
|
||||
int32_t ret = nice(inc);
|
||||
if (errno != 0) {
|
||||
throw Error::New(
|
||||
args.Env(), std::string("nice(): ") + strerror(errno));
|
||||
}
|
||||
return Number::New(args.Env(), ret);
|
||||
}
|
||||
|
||||
static Object Init(Env env, Object exports) {
|
||||
exports["nice"] = Function::New(env, Nice);
|
||||
return exports;
|
||||
}
|
||||
|
||||
NODE_API_MODULE(nice_napi, Init)
|
||||
18
my-app/node_modules/nice-napi/binding.gyp
generated
vendored
Executable file
18
my-app/node_modules/nice-napi/binding.gyp
generated
vendored
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
'targets': [{
|
||||
'target_name': 'nice_napi',
|
||||
'sources': [ 'binding.cc' ],
|
||||
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
|
||||
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
|
||||
'cflags!': [ '-fno-exceptions' ],
|
||||
'cflags_cc!': [ '-fno-exceptions' ],
|
||||
'xcode_settings': {
|
||||
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
||||
'CLANG_CXX_LIBRARY': 'libc++',
|
||||
'MACOSX_DEPLOYMENT_TARGET': '10.7',
|
||||
},
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
|
||||
},
|
||||
}]
|
||||
}
|
||||
329
my-app/node_modules/nice-napi/build/Makefile
generated
vendored
Executable file
329
my-app/node_modules/nice-napi/build/Makefile
generated
vendored
Executable file
|
|
@ -0,0 +1,329 @@
|
|||
# We borrow heavily from the kernel build setup, though we are simpler since
|
||||
# we don't have Kconfig tweaking settings on us.
|
||||
|
||||
# The implicit make rules have it looking for RCS files, among other things.
|
||||
# We instead explicitly write all the rules we care about.
|
||||
# It's even quicker (saves ~200ms) to pass -r on the command line.
|
||||
MAKEFLAGS=-r
|
||||
|
||||
# The source directory tree.
|
||||
srcdir := ..
|
||||
abs_srcdir := $(abspath $(srcdir))
|
||||
|
||||
# The name of the builddir.
|
||||
builddir_name ?= .
|
||||
|
||||
# The V=1 flag on command line makes us verbosely print command lines.
|
||||
ifdef V
|
||||
quiet=
|
||||
else
|
||||
quiet=quiet_
|
||||
endif
|
||||
|
||||
# Specify BUILDTYPE=Release on the command line for a release build.
|
||||
BUILDTYPE ?= Release
|
||||
|
||||
# Directory all our build output goes into.
|
||||
# Note that this must be two directories beneath src/ for unit tests to pass,
|
||||
# as they reach into the src/ directory for data with relative paths.
|
||||
builddir ?= $(builddir_name)/$(BUILDTYPE)
|
||||
abs_builddir := $(abspath $(builddir))
|
||||
depsdir := $(builddir)/.deps
|
||||
|
||||
# Object output directory.
|
||||
obj := $(builddir)/obj
|
||||
abs_obj := $(abspath $(obj))
|
||||
|
||||
# We build up a list of every single one of the targets so we can slurp in the
|
||||
# generated dependency rule Makefiles in one pass.
|
||||
all_deps :=
|
||||
|
||||
|
||||
|
||||
CC.target ?= ccache gcc-7
|
||||
CFLAGS.target ?= $(CPPFLAGS) $(CFLAGS)
|
||||
CXX.target ?= ccache g++-7
|
||||
CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS)
|
||||
LINK.target ?= $(LINK)
|
||||
LDFLAGS.target ?= $(LDFLAGS)
|
||||
AR.target ?= $(AR)
|
||||
|
||||
# C++ apps need to be linked with g++.
|
||||
LINK ?= $(CXX.target)
|
||||
|
||||
# TODO(evan): move all cross-compilation logic to gyp-time so we don't need
|
||||
# to replicate this environment fallback in make as well.
|
||||
CC.host ?= ccache gcc-7
|
||||
CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host)
|
||||
CXX.host ?= ccache g++-7
|
||||
CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host)
|
||||
LINK.host ?= $(CXX.host)
|
||||
LDFLAGS.host ?=
|
||||
AR.host ?= ar
|
||||
|
||||
# Define a dir function that can handle spaces.
|
||||
# http://www.gnu.org/software/make/manual/make.html#Syntax-of-Functions
|
||||
# "leading spaces cannot appear in the text of the first argument as written.
|
||||
# These characters can be put into the argument value by variable substitution."
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
|
||||
# http://stackoverflow.com/questions/1189781/using-make-dir-or-notdir-on-a-path-with-spaces
|
||||
replace_spaces = $(subst $(space),?,$1)
|
||||
unreplace_spaces = $(subst ?,$(space),$1)
|
||||
dirx = $(call unreplace_spaces,$(dir $(call replace_spaces,$1)))
|
||||
|
||||
# Flags to make gcc output dependency info. Note that you need to be
|
||||
# careful here to use the flags that ccache and distcc can understand.
|
||||
# We write to a dep file on the side first and then rename at the end
|
||||
# so we can't end up with a broken dep file.
|
||||
depfile = $(depsdir)/$(call replace_spaces,$@).d
|
||||
DEPFLAGS = -MMD -MF $(depfile).raw
|
||||
|
||||
# We have to fixup the deps output in a few ways.
|
||||
# (1) the file output should mention the proper .o file.
|
||||
# ccache or distcc lose the path to the target, so we convert a rule of
|
||||
# the form:
|
||||
# foobar.o: DEP1 DEP2
|
||||
# into
|
||||
# path/to/foobar.o: DEP1 DEP2
|
||||
# (2) we want missing files not to cause us to fail to build.
|
||||
# We want to rewrite
|
||||
# foobar.o: DEP1 DEP2 \
|
||||
# DEP3
|
||||
# to
|
||||
# DEP1:
|
||||
# DEP2:
|
||||
# DEP3:
|
||||
# so if the files are missing, they're just considered phony rules.
|
||||
# We have to do some pretty insane escaping to get those backslashes
|
||||
# and dollar signs past make, the shell, and sed at the same time.
|
||||
# Doesn't work with spaces, but that's fine: .d files have spaces in
|
||||
# their names replaced with other characters.
|
||||
define fixup_dep
|
||||
# The depfile may not exist if the input file didn't have any #includes.
|
||||
touch $(depfile).raw
|
||||
# Fixup path as in (1).
|
||||
sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)
|
||||
# Add extra rules as in (2).
|
||||
# We remove slashes and replace spaces with new lines;
|
||||
# remove blank lines;
|
||||
# delete the first line and append a colon to the remaining lines.
|
||||
sed -e 's|\\||' -e 'y| |\n|' $(depfile).raw |\
|
||||
grep -v '^$$' |\
|
||||
sed -e 1d -e 's|$$|:|' \
|
||||
>> $(depfile)
|
||||
rm $(depfile).raw
|
||||
endef
|
||||
|
||||
# Command definitions:
|
||||
# - cmd_foo is the actual command to run;
|
||||
# - quiet_cmd_foo is the brief-output summary of the command.
|
||||
|
||||
quiet_cmd_cc = CC($(TOOLSET)) $@
|
||||
cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $@ $<
|
||||
|
||||
quiet_cmd_cxx = CXX($(TOOLSET)) $@
|
||||
cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
|
||||
|
||||
quiet_cmd_touch = TOUCH $@
|
||||
cmd_touch = touch $@
|
||||
|
||||
quiet_cmd_copy = COPY $@
|
||||
# send stderr to /dev/null to ignore messages when linking directories.
|
||||
cmd_copy = rm -rf "$@" && cp -af "$<" "$@"
|
||||
|
||||
quiet_cmd_alink = AR($(TOOLSET)) $@
|
||||
cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
|
||||
|
||||
quiet_cmd_alink_thin = AR($(TOOLSET)) $@
|
||||
cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
|
||||
|
||||
# Due to circular dependencies between libraries :(, we wrap the
|
||||
# special "figure out circular dependencies" flags around the entire
|
||||
# input list during linking.
|
||||
quiet_cmd_link = LINK($(TOOLSET)) $@
|
||||
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
|
||||
|
||||
# We support two kinds of shared objects (.so):
|
||||
# 1) shared_library, which is just bundling together many dependent libraries
|
||||
# into a link line.
|
||||
# 2) loadable_module, which is generating a module intended for dlopen().
|
||||
#
|
||||
# They differ only slightly:
|
||||
# In the former case, we want to package all dependent code into the .so.
|
||||
# In the latter case, we want to package just the API exposed by the
|
||||
# outermost module.
|
||||
# This means shared_library uses --whole-archive, while loadable_module doesn't.
|
||||
# (Note that --whole-archive is incompatible with the --start-group used in
|
||||
# normal linking.)
|
||||
|
||||
# Other shared-object link notes:
|
||||
# - Set SONAME to the library filename so our binaries don't reference
|
||||
# the local, absolute paths used on the link command-line.
|
||||
quiet_cmd_solink = SOLINK($(TOOLSET)) $@
|
||||
cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
|
||||
|
||||
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
||||
cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
|
||||
|
||||
|
||||
# Define an escape_quotes function to escape single quotes.
|
||||
# This allows us to handle quotes properly as long as we always use
|
||||
# use single quotes and escape_quotes.
|
||||
escape_quotes = $(subst ','\'',$(1))
|
||||
# This comment is here just to include a ' to unconfuse syntax highlighting.
|
||||
# Define an escape_vars function to escape '$' variable syntax.
|
||||
# This allows us to read/write command lines with shell variables (e.g.
|
||||
# $LD_LIBRARY_PATH), without triggering make substitution.
|
||||
escape_vars = $(subst $$,$$$$,$(1))
|
||||
# Helper that expands to a shell command to echo a string exactly as it is in
|
||||
# make. This uses printf instead of echo because printf's behaviour with respect
|
||||
# to escape sequences is more portable than echo's across different shells
|
||||
# (e.g., dash, bash).
|
||||
exact_echo = printf '%s\n' '$(call escape_quotes,$(1))'
|
||||
|
||||
# Helper to compare the command we're about to run against the command
|
||||
# we logged the last time we ran the command. Produces an empty
|
||||
# string (false) when the commands match.
|
||||
# Tricky point: Make has no string-equality test function.
|
||||
# The kernel uses the following, but it seems like it would have false
|
||||
# positives, where one string reordered its arguments.
|
||||
# arg_check = $(strip $(filter-out $(cmd_$(1)), $(cmd_$@)) \
|
||||
# $(filter-out $(cmd_$@), $(cmd_$(1))))
|
||||
# We instead substitute each for the empty string into the other, and
|
||||
# say they're equal if both substitutions produce the empty string.
|
||||
# .d files contain ? instead of spaces, take that into account.
|
||||
command_changed = $(or $(subst $(cmd_$(1)),,$(cmd_$(call replace_spaces,$@))),\
|
||||
$(subst $(cmd_$(call replace_spaces,$@)),,$(cmd_$(1))))
|
||||
|
||||
# Helper that is non-empty when a prerequisite changes.
|
||||
# Normally make does this implicitly, but we force rules to always run
|
||||
# so we can check their command lines.
|
||||
# $? -- new prerequisites
|
||||
# $| -- order-only dependencies
|
||||
prereq_changed = $(filter-out FORCE_DO_CMD,$(filter-out $|,$?))
|
||||
|
||||
# Helper that executes all postbuilds until one fails.
|
||||
define do_postbuilds
|
||||
@E=0;\
|
||||
for p in $(POSTBUILDS); do\
|
||||
eval $$p;\
|
||||
E=$$?;\
|
||||
if [ $$E -ne 0 ]; then\
|
||||
break;\
|
||||
fi;\
|
||||
done;\
|
||||
if [ $$E -ne 0 ]; then\
|
||||
rm -rf "$@";\
|
||||
exit $$E;\
|
||||
fi
|
||||
endef
|
||||
|
||||
# do_cmd: run a command via the above cmd_foo names, if necessary.
|
||||
# Should always run for a given target to handle command-line changes.
|
||||
# Second argument, if non-zero, makes it do asm/C/C++ dependency munging.
|
||||
# Third argument, if non-zero, makes it do POSTBUILDS processing.
|
||||
# Note: We intentionally do NOT call dirx for depfile, since it contains ? for
|
||||
# spaces already and dirx strips the ? characters.
|
||||
define do_cmd
|
||||
$(if $(or $(command_changed),$(prereq_changed)),
|
||||
@$(call exact_echo, $($(quiet)cmd_$(1)))
|
||||
@mkdir -p "$(call dirx,$@)" "$(dir $(depfile))"
|
||||
$(if $(findstring flock,$(word 1,$(cmd_$1))),
|
||||
@$(cmd_$(1))
|
||||
@echo " $(quiet_cmd_$(1)): Finished",
|
||||
@$(cmd_$(1))
|
||||
)
|
||||
@$(call exact_echo,$(call escape_vars,cmd_$(call replace_spaces,$@) := $(cmd_$(1)))) > $(depfile)
|
||||
@$(if $(2),$(fixup_dep))
|
||||
$(if $(and $(3), $(POSTBUILDS)),
|
||||
$(call do_postbuilds)
|
||||
)
|
||||
)
|
||||
endef
|
||||
|
||||
# Declare the "all" target first so it is the default,
|
||||
# even though we don't have the deps yet.
|
||||
.PHONY: all
|
||||
all:
|
||||
|
||||
# make looks for ways to re-generate included makefiles, but in our case, we
|
||||
# don't have a direct way. Explicitly telling make that it has nothing to do
|
||||
# for them makes it go faster.
|
||||
%.d: ;
|
||||
|
||||
# Use FORCE_DO_CMD to force a target to run. Should be coupled with
|
||||
# do_cmd.
|
||||
.PHONY: FORCE_DO_CMD
|
||||
FORCE_DO_CMD:
|
||||
|
||||
TOOLSET := target
|
||||
# Suffix rules, putting all outputs into $(obj).
|
||||
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.c FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.cxx FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.s FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.S FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
|
||||
# Try building from generated source, too.
|
||||
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.c FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cxx FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.s FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.S FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
|
||||
$(obj).$(TOOLSET)/%.o: $(obj)/%.c FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj)/%.cc FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj)/%.cxx FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj)/%.s FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj)/%.S FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
|
||||
|
||||
ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
|
||||
$(findstring $(join ^,$(prefix)),\
|
||||
$(join ^,nice_napi.target.mk)))),)
|
||||
include nice_napi.target.mk
|
||||
endif
|
||||
ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
|
||||
$(findstring $(join ^,$(prefix)),\
|
||||
$(join ^,node_modules/node-addon-api/nothing.target.mk)))),)
|
||||
include node_modules/node-addon-api/nothing.target.mk
|
||||
endif
|
||||
|
||||
quiet_cmd_regen_makefile = ACTION Regenerating $@
|
||||
cmd_regen_makefile = cd $(srcdir); /home/addaleax/src/nice-napi/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/tmp/prebuildify/node/14.0.0" "-Dnode_gyp_dir=/home/addaleax/src/nice-napi/node_modules/node-gyp" "-Dnode_lib_file=/tmp/prebuildify/node/14.0.0/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/addaleax/src/nice-napi" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/addaleax/src/nice-napi/build/config.gypi -I/home/addaleax/src/nice-napi/node_modules/node-gyp/addon.gypi -I/tmp/prebuildify/node/14.0.0/include/node/common.gypi "--toplevel-dir=." binding.gyp
|
||||
Makefile: $(srcdir)/node_modules/node-addon-api/node_api.gyp $(srcdir)/binding.gyp $(srcdir)/node_modules/node-gyp/addon.gypi $(srcdir)/../../../../tmp/prebuildify/node/14.0.0/include/node/common.gypi $(srcdir)/build/config.gypi
|
||||
$(call do_cmd,regen_makefile)
|
||||
|
||||
# "all" is a concatenation of the "all" targets from all the included
|
||||
# sub-makefiles. This is just here to clarify.
|
||||
all:
|
||||
|
||||
# Add in dependency-tracking rules. $(all_deps) is the list of every single
|
||||
# target in our tree. Only consider the ones with .d (dependency) info:
|
||||
d_files := $(wildcard $(foreach f,$(all_deps),$(depsdir)/$(f).d))
|
||||
ifneq ($(d_files),)
|
||||
include $(d_files)
|
||||
endif
|
||||
1
my-app/node_modules/nice-napi/build/Release/.deps/Release/nice_napi.node.d
generated
vendored
Executable file
1
my-app/node_modules/nice-napi/build/Release/.deps/Release/nice_napi.node.d
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
cmd_Release/nice_napi.node := rm -rf "Release/nice_napi.node" && cp -af "Release/obj.target/nice_napi.node" "Release/nice_napi.node"
|
||||
1
my-app/node_modules/nice-napi/build/Release/.deps/Release/nothing.a.d
generated
vendored
Executable file
1
my-app/node_modules/nice-napi/build/Release/.deps/Release/nothing.a.d
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
cmd_Release/nothing.a := rm -rf "Release/nothing.a" && cp -af "Release/obj.target/node_modules/node-addon-api/nothing.a" "Release/nothing.a"
|
||||
1
my-app/node_modules/nice-napi/build/Release/.deps/Release/obj.target/nice_napi.node.d
generated
vendored
Executable file
1
my-app/node_modules/nice-napi/build/Release/.deps/Release/obj.target/nice_napi.node.d
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
cmd_Release/obj.target/nice_napi.node := ccache g++-7 -shared -pthread -rdynamic -m64 -Wl,-soname=nice_napi.node -o Release/obj.target/nice_napi.node -Wl,--start-group Release/obj.target/nice_napi/binding.o Release/obj.target/node_modules/node-addon-api/nothing.a -Wl,--end-group
|
||||
17
my-app/node_modules/nice-napi/build/Release/.deps/Release/obj.target/nice_napi/binding.o.d
generated
vendored
Executable file
17
my-app/node_modules/nice-napi/build/Release/.deps/Release/obj.target/nice_napi/binding.o.d
generated
vendored
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
cmd_Release/obj.target/nice_napi/binding.o := ccache g++-7 '-DNODE_GYP_MODULE_NAME=nice_napi' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/tmp/prebuildify/node/14.0.0/include/node -I/tmp/prebuildify/node/14.0.0/src -I/tmp/prebuildify/node/14.0.0/deps/openssl/config -I/tmp/prebuildify/node/14.0.0/deps/openssl/openssl/include -I/tmp/prebuildify/node/14.0.0/deps/uv/include -I/tmp/prebuildify/node/14.0.0/deps/zlib -I/tmp/prebuildify/node/14.0.0/deps/v8/include -I/home/addaleax/src/nice-napi/node_modules/node-addon-api -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -std=gnu++1y -MMD -MF ./Release/.deps/Release/obj.target/nice_napi/binding.o.d.raw -fPIC -c -o Release/obj.target/nice_napi/binding.o ../binding.cc
|
||||
Release/obj.target/nice_napi/binding.o: ../binding.cc \
|
||||
/home/addaleax/src/nice-napi/node_modules/node-addon-api/napi.h \
|
||||
/tmp/prebuildify/node/14.0.0/include/node/node_api.h \
|
||||
/tmp/prebuildify/node/14.0.0/include/node/js_native_api.h \
|
||||
/tmp/prebuildify/node/14.0.0/include/node/js_native_api_types.h \
|
||||
/tmp/prebuildify/node/14.0.0/include/node/node_api_types.h \
|
||||
/home/addaleax/src/nice-napi/node_modules/node-addon-api/napi-inl.h \
|
||||
/home/addaleax/src/nice-napi/node_modules/node-addon-api/napi-inl.deprecated.h
|
||||
../binding.cc:
|
||||
/home/addaleax/src/nice-napi/node_modules/node-addon-api/napi.h:
|
||||
/tmp/prebuildify/node/14.0.0/include/node/node_api.h:
|
||||
/tmp/prebuildify/node/14.0.0/include/node/js_native_api.h:
|
||||
/tmp/prebuildify/node/14.0.0/include/node/js_native_api_types.h:
|
||||
/tmp/prebuildify/node/14.0.0/include/node/node_api_types.h:
|
||||
/home/addaleax/src/nice-napi/node_modules/node-addon-api/napi-inl.h:
|
||||
/home/addaleax/src/nice-napi/node_modules/node-addon-api/napi-inl.deprecated.h:
|
||||
1
my-app/node_modules/nice-napi/build/Release/.deps/Release/obj.target/node_modules/node-addon-api/nothing.a.d
generated
vendored
Executable file
1
my-app/node_modules/nice-napi/build/Release/.deps/Release/obj.target/node_modules/node-addon-api/nothing.a.d
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
cmd_Release/obj.target/node_modules/node-addon-api/nothing.a := rm -f Release/obj.target/node_modules/node-addon-api/nothing.a && ar crs Release/obj.target/node_modules/node-addon-api/nothing.a Release/obj.target/nothing/node_modules/node-addon-api/nothing.o
|
||||
4
my-app/node_modules/nice-napi/build/Release/.deps/Release/obj.target/nothing/node_modules/node-addon-api/nothing.o.d
generated
vendored
Executable file
4
my-app/node_modules/nice-napi/build/Release/.deps/Release/obj.target/nothing/node_modules/node-addon-api/nothing.o.d
generated
vendored
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
cmd_Release/obj.target/nothing/node_modules/node-addon-api/nothing.o := ccache gcc-7 '-DNODE_GYP_MODULE_NAME=nothing' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' -I/tmp/prebuildify/node/14.0.0/include/node -I/tmp/prebuildify/node/14.0.0/src -I/tmp/prebuildify/node/14.0.0/deps/openssl/config -I/tmp/prebuildify/node/14.0.0/deps/openssl/openssl/include -I/tmp/prebuildify/node/14.0.0/deps/uv/include -I/tmp/prebuildify/node/14.0.0/deps/zlib -I/tmp/prebuildify/node/14.0.0/deps/v8/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -MMD -MF ./Release/.deps/Release/obj.target/nothing/node_modules/node-addon-api/nothing.o.d.raw -fPIC -c -o Release/obj.target/nothing/node_modules/node-addon-api/nothing.o ../node_modules/node-addon-api/nothing.c
|
||||
Release/obj.target/nothing/node_modules/node-addon-api/nothing.o: \
|
||||
../node_modules/node-addon-api/nothing.c
|
||||
../node_modules/node-addon-api/nothing.c:
|
||||
BIN
my-app/node_modules/nice-napi/build/Release/nothing.a
generated
vendored
Executable file
BIN
my-app/node_modules/nice-napi/build/Release/nothing.a
generated
vendored
Executable file
Binary file not shown.
BIN
my-app/node_modules/nice-napi/build/Release/obj.target/nice_napi.node
generated
vendored
Executable file
BIN
my-app/node_modules/nice-napi/build/Release/obj.target/nice_napi.node
generated
vendored
Executable file
Binary file not shown.
BIN
my-app/node_modules/nice-napi/build/Release/obj.target/nice_napi/binding.o
generated
vendored
Executable file
BIN
my-app/node_modules/nice-napi/build/Release/obj.target/nice_napi/binding.o
generated
vendored
Executable file
Binary file not shown.
BIN
my-app/node_modules/nice-napi/build/Release/obj.target/node_modules/node-addon-api/nothing.a
generated
vendored
Executable file
BIN
my-app/node_modules/nice-napi/build/Release/obj.target/node_modules/node-addon-api/nothing.a
generated
vendored
Executable file
Binary file not shown.
BIN
my-app/node_modules/nice-napi/build/Release/obj.target/nothing/node_modules/node-addon-api/nothing.o
generated
vendored
Executable file
BIN
my-app/node_modules/nice-napi/build/Release/obj.target/nothing/node_modules/node-addon-api/nothing.o
generated
vendored
Executable file
Binary file not shown.
6
my-app/node_modules/nice-napi/build/binding.Makefile
generated
vendored
Executable file
6
my-app/node_modules/nice-napi/build/binding.Makefile
generated
vendored
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
# This file is generated by gyp; do not edit.
|
||||
|
||||
export builddir_name ?= ./build/.
|
||||
.PHONY: all
|
||||
all:
|
||||
$(MAKE) nice_napi
|
||||
160
my-app/node_modules/nice-napi/build/nice_napi.target.mk
generated
vendored
Executable file
160
my-app/node_modules/nice-napi/build/nice_napi.target.mk
generated
vendored
Executable file
|
|
@ -0,0 +1,160 @@
|
|||
# This file is generated by gyp; do not edit.
|
||||
|
||||
TOOLSET := target
|
||||
TARGET := nice_napi
|
||||
DEFS_Debug := \
|
||||
'-DNODE_GYP_MODULE_NAME=nice_napi' \
|
||||
'-DUSING_UV_SHARED=1' \
|
||||
'-DUSING_V8_SHARED=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS' \
|
||||
'-DV8_IMMINENT_DEPRECATION_WARNINGS' \
|
||||
'-D_LARGEFILE_SOURCE' \
|
||||
'-D_FILE_OFFSET_BITS=64' \
|
||||
'-D__STDC_FORMAT_MACROS' \
|
||||
'-DOPENSSL_NO_PINSHARED' \
|
||||
'-DOPENSSL_THREADS' \
|
||||
'-DBUILDING_NODE_EXTENSION' \
|
||||
'-DDEBUG' \
|
||||
'-D_DEBUG' \
|
||||
'-DV8_ENABLE_CHECKS'
|
||||
|
||||
# Flags passed to all source files.
|
||||
CFLAGS_Debug := \
|
||||
-fPIC \
|
||||
-pthread \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
-Wno-unused-parameter \
|
||||
-m64 \
|
||||
-g \
|
||||
-O0
|
||||
|
||||
# Flags passed to only C files.
|
||||
CFLAGS_C_Debug :=
|
||||
|
||||
# Flags passed to only C++ files.
|
||||
CFLAGS_CC_Debug := \
|
||||
-fno-rtti \
|
||||
-std=gnu++1y
|
||||
|
||||
INCS_Debug := \
|
||||
-I/tmp/prebuildify/node/14.0.0/include/node \
|
||||
-I/tmp/prebuildify/node/14.0.0/src \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/openssl/config \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/openssl/openssl/include \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/uv/include \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/zlib \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/v8/include \
|
||||
-I/home/addaleax/src/nice-napi/node_modules/node-addon-api
|
||||
|
||||
DEFS_Release := \
|
||||
'-DNODE_GYP_MODULE_NAME=nice_napi' \
|
||||
'-DUSING_UV_SHARED=1' \
|
||||
'-DUSING_V8_SHARED=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS' \
|
||||
'-DV8_IMMINENT_DEPRECATION_WARNINGS' \
|
||||
'-D_LARGEFILE_SOURCE' \
|
||||
'-D_FILE_OFFSET_BITS=64' \
|
||||
'-D__STDC_FORMAT_MACROS' \
|
||||
'-DOPENSSL_NO_PINSHARED' \
|
||||
'-DOPENSSL_THREADS' \
|
||||
'-DBUILDING_NODE_EXTENSION'
|
||||
|
||||
# Flags passed to all source files.
|
||||
CFLAGS_Release := \
|
||||
-fPIC \
|
||||
-pthread \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
-Wno-unused-parameter \
|
||||
-m64 \
|
||||
-O3 \
|
||||
-fno-omit-frame-pointer
|
||||
|
||||
# Flags passed to only C files.
|
||||
CFLAGS_C_Release :=
|
||||
|
||||
# Flags passed to only C++ files.
|
||||
CFLAGS_CC_Release := \
|
||||
-fno-rtti \
|
||||
-std=gnu++1y
|
||||
|
||||
INCS_Release := \
|
||||
-I/tmp/prebuildify/node/14.0.0/include/node \
|
||||
-I/tmp/prebuildify/node/14.0.0/src \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/openssl/config \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/openssl/openssl/include \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/uv/include \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/zlib \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/v8/include \
|
||||
-I/home/addaleax/src/nice-napi/node_modules/node-addon-api
|
||||
|
||||
OBJS := \
|
||||
$(obj).target/$(TARGET)/binding.o
|
||||
|
||||
# Add to the list of files we specially track dependencies for.
|
||||
all_deps += $(OBJS)
|
||||
|
||||
# Make sure our dependencies are built before any of us.
|
||||
$(OBJS): | $(builddir)/nothing.a $(obj).target/node_modules/node-addon-api/nothing.a
|
||||
|
||||
# CFLAGS et al overrides must be target-local.
|
||||
# See "Target-specific Variable Values" in the GNU Make manual.
|
||||
$(OBJS): TOOLSET := $(TOOLSET)
|
||||
$(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
|
||||
$(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
|
||||
|
||||
# Suffix rules, putting all outputs into $(obj).
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
|
||||
# Try building from generated source, too.
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
|
||||
# End of this set of suffix rules
|
||||
### Rules for final target.
|
||||
LDFLAGS_Debug := \
|
||||
-pthread \
|
||||
-rdynamic \
|
||||
-m64
|
||||
|
||||
LDFLAGS_Release := \
|
||||
-pthread \
|
||||
-rdynamic \
|
||||
-m64
|
||||
|
||||
LIBS :=
|
||||
|
||||
$(obj).target/nice_napi.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
|
||||
$(obj).target/nice_napi.node: LIBS := $(LIBS)
|
||||
$(obj).target/nice_napi.node: TOOLSET := $(TOOLSET)
|
||||
$(obj).target/nice_napi.node: $(OBJS) $(obj).target/node_modules/node-addon-api/nothing.a FORCE_DO_CMD
|
||||
$(call do_cmd,solink_module)
|
||||
|
||||
all_deps += $(obj).target/nice_napi.node
|
||||
# Add target alias
|
||||
.PHONY: nice_napi
|
||||
nice_napi: $(builddir)/nice_napi.node
|
||||
|
||||
# Copy this to the executable output path.
|
||||
$(builddir)/nice_napi.node: TOOLSET := $(TOOLSET)
|
||||
$(builddir)/nice_napi.node: $(obj).target/nice_napi.node FORCE_DO_CMD
|
||||
$(call do_cmd,copy)
|
||||
|
||||
all_deps += $(builddir)/nice_napi.node
|
||||
# Short alias for building this executable.
|
||||
.PHONY: nice_napi.node
|
||||
nice_napi.node: $(obj).target/nice_napi.node $(builddir)/nice_napi.node
|
||||
|
||||
# Add executable to "all" target.
|
||||
.PHONY: all
|
||||
all: $(builddir)/nice_napi.node
|
||||
|
||||
163
my-app/node_modules/nice-napi/build/node_modules/node-addon-api/nothing.target.mk
generated
vendored
Executable file
163
my-app/node_modules/nice-napi/build/node_modules/node-addon-api/nothing.target.mk
generated
vendored
Executable file
|
|
@ -0,0 +1,163 @@
|
|||
# This file is generated by gyp; do not edit.
|
||||
|
||||
TOOLSET := target
|
||||
TARGET := nothing
|
||||
DEFS_Debug := \
|
||||
'-DNODE_GYP_MODULE_NAME=nothing' \
|
||||
'-DUSING_UV_SHARED=1' \
|
||||
'-DUSING_V8_SHARED=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS' \
|
||||
'-DV8_IMMINENT_DEPRECATION_WARNINGS' \
|
||||
'-D_LARGEFILE_SOURCE' \
|
||||
'-D_FILE_OFFSET_BITS=64' \
|
||||
'-D__STDC_FORMAT_MACROS' \
|
||||
'-DOPENSSL_NO_PINSHARED' \
|
||||
'-DOPENSSL_THREADS' \
|
||||
'-DDEBUG' \
|
||||
'-D_DEBUG' \
|
||||
'-DV8_ENABLE_CHECKS'
|
||||
|
||||
# Flags passed to all source files.
|
||||
CFLAGS_Debug := \
|
||||
-fPIC \
|
||||
-pthread \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
-Wno-unused-parameter \
|
||||
-m64 \
|
||||
-g \
|
||||
-O0
|
||||
|
||||
# Flags passed to only C files.
|
||||
CFLAGS_C_Debug :=
|
||||
|
||||
# Flags passed to only C++ files.
|
||||
CFLAGS_CC_Debug := \
|
||||
-fno-rtti \
|
||||
-fno-exceptions \
|
||||
-std=gnu++1y
|
||||
|
||||
INCS_Debug := \
|
||||
-I/tmp/prebuildify/node/14.0.0/include/node \
|
||||
-I/tmp/prebuildify/node/14.0.0/src \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/openssl/config \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/openssl/openssl/include \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/uv/include \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/zlib \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/v8/include
|
||||
|
||||
DEFS_Release := \
|
||||
'-DNODE_GYP_MODULE_NAME=nothing' \
|
||||
'-DUSING_UV_SHARED=1' \
|
||||
'-DUSING_V8_SHARED=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS' \
|
||||
'-DV8_IMMINENT_DEPRECATION_WARNINGS' \
|
||||
'-D_LARGEFILE_SOURCE' \
|
||||
'-D_FILE_OFFSET_BITS=64' \
|
||||
'-D__STDC_FORMAT_MACROS' \
|
||||
'-DOPENSSL_NO_PINSHARED' \
|
||||
'-DOPENSSL_THREADS'
|
||||
|
||||
# Flags passed to all source files.
|
||||
CFLAGS_Release := \
|
||||
-fPIC \
|
||||
-pthread \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
-Wno-unused-parameter \
|
||||
-m64 \
|
||||
-O3 \
|
||||
-fno-omit-frame-pointer
|
||||
|
||||
# Flags passed to only C files.
|
||||
CFLAGS_C_Release :=
|
||||
|
||||
# Flags passed to only C++ files.
|
||||
CFLAGS_CC_Release := \
|
||||
-fno-rtti \
|
||||
-fno-exceptions \
|
||||
-std=gnu++1y
|
||||
|
||||
INCS_Release := \
|
||||
-I/tmp/prebuildify/node/14.0.0/include/node \
|
||||
-I/tmp/prebuildify/node/14.0.0/src \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/openssl/config \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/openssl/openssl/include \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/uv/include \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/zlib \
|
||||
-I/tmp/prebuildify/node/14.0.0/deps/v8/include
|
||||
|
||||
OBJS := \
|
||||
$(obj).target/$(TARGET)/node_modules/node-addon-api/nothing.o
|
||||
|
||||
# Add to the list of files we specially track dependencies for.
|
||||
all_deps += $(OBJS)
|
||||
|
||||
# CFLAGS et al overrides must be target-local.
|
||||
# See "Target-specific Variable Values" in the GNU Make manual.
|
||||
$(OBJS): TOOLSET := $(TOOLSET)
|
||||
$(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
|
||||
$(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
|
||||
|
||||
# Suffix rules, putting all outputs into $(obj).
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.c FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
|
||||
# Try building from generated source, too.
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.c FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.c FORCE_DO_CMD
|
||||
@$(call do_cmd,cc,1)
|
||||
|
||||
# End of this set of suffix rules
|
||||
### Rules for final target.
|
||||
LDFLAGS_Debug := \
|
||||
-pthread \
|
||||
-rdynamic \
|
||||
-m64
|
||||
|
||||
LDFLAGS_Release := \
|
||||
-pthread \
|
||||
-rdynamic \
|
||||
-m64
|
||||
|
||||
LIBS :=
|
||||
|
||||
$(obj).target/node_modules/node-addon-api/nothing.a: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
|
||||
$(obj).target/node_modules/node-addon-api/nothing.a: LIBS := $(LIBS)
|
||||
$(obj).target/node_modules/node-addon-api/nothing.a: TOOLSET := $(TOOLSET)
|
||||
$(obj).target/node_modules/node-addon-api/nothing.a: $(OBJS) FORCE_DO_CMD
|
||||
$(call do_cmd,alink)
|
||||
|
||||
all_deps += $(obj).target/node_modules/node-addon-api/nothing.a
|
||||
# Add target alias
|
||||
.PHONY: nothing
|
||||
nothing: $(obj).target/node_modules/node-addon-api/nothing.a
|
||||
|
||||
# Add target alias to "all" target.
|
||||
.PHONY: all
|
||||
all: nothing
|
||||
|
||||
# Add target alias
|
||||
.PHONY: nothing
|
||||
nothing: $(builddir)/nothing.a
|
||||
|
||||
# Copy this to the static library output path.
|
||||
$(builddir)/nothing.a: TOOLSET := $(TOOLSET)
|
||||
$(builddir)/nothing.a: $(obj).target/node_modules/node-addon-api/nothing.a FORCE_DO_CMD
|
||||
$(call do_cmd,copy)
|
||||
|
||||
all_deps += $(builddir)/nothing.a
|
||||
# Short alias for building this static library.
|
||||
.PHONY: nothing.a
|
||||
nothing.a: $(obj).target/node_modules/node-addon-api/nothing.a $(builddir)/nothing.a
|
||||
|
||||
# Add static library to "all" target.
|
||||
.PHONY: all
|
||||
all: $(builddir)/nothing.a
|
||||
|
||||
3
my-app/node_modules/nice-napi/index.d.ts
generated
vendored
Executable file
3
my-app/node_modules/nice-napi/index.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
declare function nice(inc : number) : number;
|
||||
export = nice;
|
||||
|
||||
4
my-app/node_modules/nice-napi/index.js
generated
vendored
Executable file
4
my-app/node_modules/nice-napi/index.js
generated
vendored
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
'use strict';
|
||||
const { nice } = require('node-gyp-build')(__dirname);
|
||||
nice.nice = nice;
|
||||
module.exports = nice;
|
||||
37
my-app/node_modules/nice-napi/package.json
generated
vendored
Executable file
37
my-app/node_modules/nice-napi/package.json
generated
vendored
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"name": "nice-napi",
|
||||
"version": "1.0.2",
|
||||
"description": "nice(2) bindings for Node.js",
|
||||
"os" : [ "!win32" ],
|
||||
"main": "./index.js",
|
||||
"exports": {
|
||||
"import": "./.esm-wrapper.mjs",
|
||||
"require": "./index.js"
|
||||
},
|
||||
"types": "./index.d.ts",
|
||||
"scripts": {
|
||||
"test": "node ./test.js",
|
||||
"install": "node-gyp-build",
|
||||
"prebuildify": "prebuildify --napi",
|
||||
"prepack": " gen-esm-wrapper . ./.esm-wrapper.mjs && prebuildify-ci download && ([ $(ls prebuilds | wc -l) = '2' ] || (echo 'Some prebuilds are missing'; exit 1))"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/addaleax/nice-napi"
|
||||
},
|
||||
"keywords": [
|
||||
"nice",
|
||||
"priority"
|
||||
],
|
||||
"author": "Anna Henningsen <anna@addaleax.net>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"node-addon-api": "^3.0.0",
|
||||
"node-gyp-build": "^4.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gen-esm-wrapper": "^1.0.6",
|
||||
"prebuildify": "^4.0.0",
|
||||
"prebuildify-ci": "^1.0.5"
|
||||
}
|
||||
}
|
||||
BIN
my-app/node_modules/nice-napi/prebuilds/darwin-x64/node.napi.node
generated
vendored
Executable file
BIN
my-app/node_modules/nice-napi/prebuilds/darwin-x64/node.napi.node
generated
vendored
Executable file
Binary file not shown.
BIN
my-app/node_modules/nice-napi/prebuilds/linux-x64/node.napi.node
generated
vendored
Executable file
BIN
my-app/node_modules/nice-napi/prebuilds/linux-x64/node.napi.node
generated
vendored
Executable file
Binary file not shown.
37
my-app/node_modules/nice-napi/test.js
generated
vendored
Executable file
37
my-app/node_modules/nice-napi/test.js
generated
vendored
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
'use strict';
|
||||
const assert = require('assert');
|
||||
const nice = require('./');
|
||||
|
||||
assert.strictEqual(nice.nice, nice);
|
||||
|
||||
const cur = nice(0);
|
||||
assert.strictEqual(cur + 1, nice(1));
|
||||
assert.strictEqual(cur + 1, nice(0));
|
||||
|
||||
if (+process.version.split('.')[0].slice(1) >= 12 && process.platform === 'linux') {
|
||||
let messages = 0;
|
||||
const { Worker } = require('worker_threads');
|
||||
const w = new Worker(`require("worker_threads").parentPort.postMessage(
|
||||
require("./")(1))`, { eval: true });
|
||||
w.on('message', (m) => {
|
||||
messages++;
|
||||
assert.strictEqual(cur + 1, nice(0));
|
||||
assert.strictEqual(cur + 2, m);
|
||||
});
|
||||
w.on('exit', () => {
|
||||
assert.strictEqual(messages, 1);
|
||||
assert.strictEqual(cur + 1, nice(0));
|
||||
test2();
|
||||
});
|
||||
} else {
|
||||
test2();
|
||||
}
|
||||
|
||||
function test2() {
|
||||
nice(10000);
|
||||
assert.strictEqual(nice(0), nice(10000));
|
||||
|
||||
if (process.getuid() !== 0) {
|
||||
assert.throws(() => nice(-1), /nice\(\): Operation not permitted/);
|
||||
}
|
||||
}
|
||||
82
my-app/node_modules/nice-napi/v8_enable_pointer_compression=false/build/config.gypi
generated
vendored
Executable file
82
my-app/node_modules/nice-napi/v8_enable_pointer_compression=false/build/config.gypi
generated
vendored
Executable file
|
|
@ -0,0 +1,82 @@
|
|||
# Do not edit. File was generated by node-gyp's "configure" step
|
||||
{
|
||||
"target_defaults": {
|
||||
"cflags": [],
|
||||
"default_configuration": "Release",
|
||||
"defines": [],
|
||||
"include_dirs": [],
|
||||
"libraries": []
|
||||
},
|
||||
"variables": {
|
||||
"asan": 0,
|
||||
"build_v8_with_gn": "false",
|
||||
"coverage": "false",
|
||||
"debug_nghttp2": "false",
|
||||
"debug_node": "false",
|
||||
"enable_lto": "false",
|
||||
"enable_pgo_generate": "false",
|
||||
"enable_pgo_use": "false",
|
||||
"force_dynamic_crt": 0,
|
||||
"gas_version": "2.27",
|
||||
"host_arch": "x64",
|
||||
"icu_data_in": "../../deps/icu-small/source/data/in/icudt65l.dat",
|
||||
"icu_default_data": "",
|
||||
"icu_endianness": "l",
|
||||
"icu_gyp_path": "tools/icu/icu-generic.gyp",
|
||||
"icu_locales": "en,root",
|
||||
"icu_path": "deps/icu-small",
|
||||
"icu_small": "true",
|
||||
"icu_ver_major": "65",
|
||||
"is_debug": 0,
|
||||
"llvm_version": "0.0",
|
||||
"napi_build_version": "5",
|
||||
"node_byteorder": "little",
|
||||
"node_debug_lib": "false",
|
||||
"node_enable_d8": "false",
|
||||
"node_install_npm": "true",
|
||||
"node_module_version": 72,
|
||||
"node_no_browser_globals": "false",
|
||||
"node_prefix": "/",
|
||||
"node_release_urlbase": "https://nodejs.org/download/release/",
|
||||
"node_report": "true",
|
||||
"node_shared": "false",
|
||||
"node_shared_brotli": "false",
|
||||
"node_shared_cares": "false",
|
||||
"node_shared_http_parser": "false",
|
||||
"node_shared_libuv": "false",
|
||||
"node_shared_nghttp2": "false",
|
||||
"node_shared_openssl": "false",
|
||||
"node_shared_zlib": "false",
|
||||
"node_tag": "",
|
||||
"node_target_type": "executable",
|
||||
"node_use_bundled_v8": "true",
|
||||
"node_use_dtrace": "false",
|
||||
"node_use_etw": "false",
|
||||
"node_use_large_pages": "false",
|
||||
"node_use_large_pages_script_lld": "false",
|
||||
"node_use_node_code_cache": "true",
|
||||
"node_use_node_snapshot": "true",
|
||||
"node_use_openssl": "true",
|
||||
"node_use_v8_platform": "true",
|
||||
"node_with_ltcg": "false",
|
||||
"node_without_node_options": "false",
|
||||
"openssl_fips": "",
|
||||
"openssl_is_fips": "false",
|
||||
"shlib_suffix": "so.72",
|
||||
"target_arch": "x64",
|
||||
"v8_enable_gdbjit": 0,
|
||||
"v8_enable_i18n_support": 1,
|
||||
"v8_enable_inspector": 1,
|
||||
"v8_no_strict_aliasing": 1,
|
||||
"v8_optimized_debug": 1,
|
||||
"v8_promise_internal_field_count": 1,
|
||||
"v8_random_seed": 0,
|
||||
"v8_trace_maps": 0,
|
||||
"v8_use_siphash": 1,
|
||||
"v8_use_snapshot": 1,
|
||||
"want_separate_host_toolset": 0,
|
||||
"nodedir": "/tmp/prebuildify/node/14.0.0",
|
||||
"standalone_static_library": 1,
|
||||
"target": "14.0.0"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue