Revert "fix: unplug node-gyp based deps (#637)"
This reverts commit 742209d773
.
This commit is contained in:
parent
742209d773
commit
17e4162d3e
650 changed files with 0 additions and 155679 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,7 +13,6 @@ newrelic_agent.log
|
|||
!.yarn/releases
|
||||
!.yarn/sdks
|
||||
!.yarn/versions
|
||||
!.yarn/unplugged
|
||||
|
||||
packages/files/uploads/*
|
||||
!packages/files/uploads/.gitkeep
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Platform specific binary for cbor-extract on darwin OS with arm64 architecture
|
Binary file not shown.
Binary file not shown.
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"name": "@cbor-extract/cbor-extract-darwin-arm64",
|
||||
"version": "2.1.1",
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "Kris Zyp",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://github.com/kriszyp/cbor-extract"
|
||||
},
|
||||
"description": "Platform specific binary for cbor-extract on darwin OS with arm64 architecture"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
Platform specific binary for cbor-extract on linux OS with arm64 architecture
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"name": "@cbor-extract/cbor-extract-linux-arm64",
|
||||
"version": "2.1.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "Kris Zyp",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://github.com/kriszyp/cbor-extract"
|
||||
},
|
||||
"description": "Platform specific binary for cbor-extract on linux OS with arm64 architecture"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
Platform specific binary for cbor-extract on linux OS with x64 architecture
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"name": "@cbor-extract/cbor-extract-linux-x64",
|
||||
"version": "2.1.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "Kris Zyp",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://github.com/kriszyp/cbor-extract"
|
||||
},
|
||||
"description": "Platform specific binary for cbor-extract on linux OS with x64 architecture"
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
Copyright 2022 Contrast Security, Inc
|
||||
|
||||
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.
|
|
@ -1,43 +0,0 @@
|
|||
# @contrast/fn-inspect
|
||||
|
||||
[![Test](https://github.com/Contrast-Security-Inc/node-fn-inspect/actions/workflows/test.yml/badge.svg)](https://github.com/Contrast-Security-Inc/node-fn-inspect/actions/workflows/test.yml)
|
||||
|
||||
This module exposes some useful information from the underlying v8 engine,
|
||||
including:
|
||||
|
||||
- file and line number given a function reference
|
||||
- code events (i.e. `'LAZY_COMPILE'`)
|
||||
|
||||
## Usage
|
||||
|
||||
Getting details about a function:
|
||||
|
||||
```js
|
||||
const { funcInfo } = require('@contrast/fn-inspect');
|
||||
|
||||
function testFn() {}
|
||||
|
||||
const results = funcInfo(testFn);
|
||||
// => { lineNumber: 2, column: 15, file: 'example.js', method: 'testFn', type: 'Function' }
|
||||
```
|
||||
|
||||
Registering a listener for code events:
|
||||
|
||||
```js
|
||||
const { setCodeEventListener } = require('@contrast/fn-inspect');
|
||||
|
||||
setCodeEventListener((event) => {
|
||||
console.log(event);
|
||||
});
|
||||
```
|
||||
|
||||
## Building locally
|
||||
|
||||
`npm run build` will build the project for your current OS and architecture.
|
||||
|
||||
`npm run download` will pull the most recent build artifacts from GitHub.
|
||||
|
||||
## Publishing
|
||||
|
||||
Simply run `npm version` and `git push && git push --tags`. CI will take care of
|
||||
releasing on taggedcommits.
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
"variables" : {
|
||||
"openssl_fips": "",
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"target_name": "fninspect",
|
||||
"sources": [
|
||||
"src/addon.cc",
|
||||
"src/code-events.cc",
|
||||
"src/event-queue.cc",
|
||||
"src/func-info.cc"
|
||||
],
|
||||
"include_dirs": [
|
||||
"<!(node -e \"require('nan')\")"
|
||||
],
|
||||
"conditions": [
|
||||
[
|
||||
"OS == 'mac'",
|
||||
{
|
||||
"xcode_settings": {
|
||||
"OTHER_CFLAGS": [
|
||||
"-arch x86_64",
|
||||
"-arch arm64"
|
||||
],
|
||||
"OTHER_LDFLAGS": [
|
||||
"-arch x86_64",
|
||||
"-arch arm64"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,347 +0,0 @@
|
|||
# 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 ?= $(CC)
|
||||
CFLAGS.target ?= $(CPPFLAGS) $(CFLAGS)
|
||||
CXX.target ?= $(CXX)
|
||||
CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS)
|
||||
LINK.target ?= $(LINK)
|
||||
LDFLAGS.target ?= $(LDFLAGS)
|
||||
AR.target ?= $(AR)
|
||||
PLI.target ?= pli
|
||||
|
||||
# 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 ?= gcc
|
||||
CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host)
|
||||
CXX.host ?= g++
|
||||
CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host)
|
||||
LINK.host ?= $(CXX.host)
|
||||
LDFLAGS.host ?= $(LDFLAGS_host)
|
||||
AR.host ?= ar
|
||||
PLI.host ?= pli
|
||||
|
||||
# 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)) -o $@ $< $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c
|
||||
|
||||
quiet_cmd_cxx = CXX($(TOOLSET)) $@
|
||||
cmd_cxx = $(CXX.$(TOOLSET)) -o $@ $< $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c
|
||||
|
||||
quiet_cmd_objc = CXX($(TOOLSET)) $@
|
||||
cmd_objc = $(CC.$(TOOLSET)) $(GYP_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||
|
||||
quiet_cmd_objcxx = CXX($(TOOLSET)) $@
|
||||
cmd_objcxx = $(CXX.$(TOOLSET)) $(GYP_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||
|
||||
# Commands for precompiled header files.
|
||||
quiet_cmd_pch_c = CXX($(TOOLSET)) $@
|
||||
cmd_pch_c = $(CC.$(TOOLSET)) $(GYP_PCH_CFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
|
||||
quiet_cmd_pch_cc = CXX($(TOOLSET)) $@
|
||||
cmd_pch_cc = $(CC.$(TOOLSET)) $(GYP_PCH_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
|
||||
quiet_cmd_pch_m = CXX($(TOOLSET)) $@
|
||||
cmd_pch_m = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||
quiet_cmd_pch_mm = CXX($(TOOLSET)) $@
|
||||
cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||
|
||||
# gyp-mac-tool is written next to the root Makefile by gyp.
|
||||
# Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
|
||||
# already.
|
||||
quiet_cmd_mac_tool = MACTOOL $(4) $<
|
||||
cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
|
||||
|
||||
quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
|
||||
cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
|
||||
|
||||
quiet_cmd_infoplist = INFOPLIST $@
|
||||
cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -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 = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp -af "$<" "$@")
|
||||
|
||||
quiet_cmd_symlink = SYMLINK $@
|
||||
cmd_symlink = ln -sf "$<" "$@"
|
||||
|
||||
quiet_cmd_alink = LIBTOOL-STATIC $@
|
||||
cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
|
||||
|
||||
quiet_cmd_link = LINK($(TOOLSET)) $@
|
||||
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
|
||||
|
||||
quiet_cmd_solink = SOLINK($(TOOLSET)) $@
|
||||
cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
|
||||
|
||||
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
||||
cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(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 2,$(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)/%.m FORCE_DO_CMD
|
||||
@$(call do_cmd,objc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.mm FORCE_DO_CMD
|
||||
@$(call do_cmd,objcxx,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)/%.m FORCE_DO_CMD
|
||||
@$(call do_cmd,objc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.mm FORCE_DO_CMD
|
||||
@$(call do_cmd,objcxx,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)/%.m FORCE_DO_CMD
|
||||
@$(call do_cmd,objc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj)/%.mm FORCE_DO_CMD
|
||||
@$(call do_cmd,objcxx,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 ^,fninspect.target.mk)))),)
|
||||
include fninspect.target.mk
|
||||
endif
|
||||
|
||||
quiet_cmd_regen_makefile = ACTION Regenerating $@
|
||||
cmd_regen_makefile = cd $(srcdir); /Users/karolsojko/workspace/server/.yarn/unplugged/node-gyp-npm-9.3.1-43540bab9c/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/Users/karolsojko/Library/Caches/node-gyp/20.2.0" "-Dnode_gyp_dir=/Users/karolsojko/workspace/server/.yarn/unplugged/node-gyp-npm-9.3.1-43540bab9c/node_modules/node-gyp" "-Dnode_lib_file=/Users/karolsojko/Library/Caches/node-gyp/20.2.0/<(target_arch)/node.lib" "-Dmodule_root_dir=/Users/karolsojko/workspace/server/.yarn/unplugged/@contrast-fn-inspect-npm-3.3.1-3a415085d5/node_modules/@contrast/fn-inspect" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/Users/karolsojko/workspace/server/.yarn/unplugged/@contrast-fn-inspect-npm-3.3.1-3a415085d5/node_modules/@contrast/fn-inspect/build/config.gypi -I/Users/karolsojko/workspace/server/.yarn/unplugged/node-gyp-npm-9.3.1-43540bab9c/node_modules/node-gyp/addon.gypi -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/common.gypi "--toplevel-dir=." binding.gyp
|
||||
Makefile: $(srcdir)/../../../../../../../../Library/Caches/node-gyp/20.2.0/include/node/common.gypi $(srcdir)/../../../../node-gyp-npm-9.3.1-43540bab9c/node_modules/node-gyp/addon.gypi $(srcdir)/binding.gyp $(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 +0,0 @@
|
|||
cmd_Release/fninspect.node := c++ -bundle -arch x86_64 -arch arm64 -undefined dynamic_lookup -Wl,-search_paths_first -mmacosx-version-min=10.15 -arch arm64 -L./Release -stdlib=libc++ -o Release/fninspect.node Release/obj.target/fninspect/src/addon.o Release/obj.target/fninspect/src/code-events.o Release/obj.target/fninspect/src/event-queue.o Release/obj.target/fninspect/src/func-info.o
|
|
@ -1,164 +0,0 @@
|
|||
cmd_Release/obj.target/fninspect/src/addon.o := c++ -o Release/obj.target/fninspect/src/addon.o ../src/addon.cc '-DNODE_GYP_MODULE_NAME=fninspect' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include -I../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -arch x86_64 -arch arm64 -MMD -MF ./Release/.deps/Release/obj.target/fninspect/src/addon.o.d.raw -c
|
||||
Release/obj.target/fninspect/src/addon.o: ../src/addon.cc \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h \
|
||||
../src/code-events.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-profiler.h \
|
||||
../src/event-queue.h ../src/func-info.h
|
||||
../src/addon.cc:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h:
|
||||
../src/code-events.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-profiler.h:
|
||||
../src/event-queue.h:
|
||||
../src/func-info.h:
|
|
@ -1,163 +0,0 @@
|
|||
cmd_Release/obj.target/fninspect/src/code-events.o := c++ -o Release/obj.target/fninspect/src/code-events.o ../src/code-events.cc '-DNODE_GYP_MODULE_NAME=fninspect' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include -I../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -arch x86_64 -arch arm64 -MMD -MF ./Release/.deps/Release/obj.target/fninspect/src/code-events.o.d.raw -c
|
||||
Release/obj.target/fninspect/src/code-events.o: ../src/code-events.cc \
|
||||
../src/code-events.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-profiler.h \
|
||||
../src/event-queue.h
|
||||
../src/code-events.cc:
|
||||
../src/code-events.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-profiler.h:
|
||||
../src/event-queue.h:
|
|
@ -1,161 +0,0 @@
|
|||
cmd_Release/obj.target/fninspect/src/event-queue.o := c++ -o Release/obj.target/fninspect/src/event-queue.o ../src/event-queue.cc '-DNODE_GYP_MODULE_NAME=fninspect' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include -I../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -arch x86_64 -arch arm64 -MMD -MF ./Release/.deps/Release/obj.target/fninspect/src/event-queue.o.d.raw -c
|
||||
Release/obj.target/fninspect/src/event-queue.o: ../src/event-queue.cc \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-profiler.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h \
|
||||
../src/event-queue.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h
|
||||
../src/event-queue.cc:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-profiler.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h:
|
||||
../src/event-queue.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h:
|
|
@ -1,159 +0,0 @@
|
|||
cmd_Release/obj.target/fninspect/src/func-info.o := c++ -o Release/obj.target/fninspect/src/func-info.o ../src/func-info.cc '-DNODE_GYP_MODULE_NAME=fninspect' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include -I../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -arch x86_64 -arch arm64 -MMD -MF ./Release/.deps/Release/obj.target/fninspect/src/func-info.o.d.raw -c
|
||||
Release/obj.target/fninspect/src/func-info.o: ../src/func-info.cc \
|
||||
../src/func-info.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h
|
||||
../src/func-info.cc:
|
||||
../src/func-info.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h:
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,6 +0,0 @@
|
|||
# This file is generated by gyp; do not edit.
|
||||
|
||||
export builddir_name ?= ./build/.
|
||||
.PHONY: all
|
||||
all:
|
||||
$(MAKE) fninspect
|
|
@ -1,412 +0,0 @@
|
|||
# Do not edit. File was generated by node-gyp's "configure" step
|
||||
{
|
||||
"target_defaults": {
|
||||
"cflags": [],
|
||||
"default_configuration": "Release",
|
||||
"defines": [],
|
||||
"include_dirs": [],
|
||||
"libraries": [],
|
||||
"msvs_configuration_platform": "ARM64",
|
||||
"xcode_configuration_platform": "arm64"
|
||||
},
|
||||
"variables": {
|
||||
"arm_fpu": "neon",
|
||||
"asan": 0,
|
||||
"coverage": "false",
|
||||
"dcheck_always_on": 0,
|
||||
"debug_nghttp2": "false",
|
||||
"debug_node": "false",
|
||||
"enable_lto": "false",
|
||||
"enable_pgo_generate": "false",
|
||||
"enable_pgo_use": "false",
|
||||
"error_on_warn": "false",
|
||||
"force_dynamic_crt": 0,
|
||||
"host_arch": "arm64",
|
||||
"icu_data_in": "../../deps/icu-tmp/icudt73l.dat",
|
||||
"icu_endianness": "l",
|
||||
"icu_gyp_path": "tools/icu/icu-generic.gyp",
|
||||
"icu_path": "deps/icu-small",
|
||||
"icu_small": "false",
|
||||
"icu_ver_major": "73",
|
||||
"is_debug": 0,
|
||||
"libdir": "lib",
|
||||
"llvm_version": "13.0",
|
||||
"napi_build_version": "8",
|
||||
"node_builtin_shareable_builtins": [
|
||||
"deps/cjs-module-lexer/lexer.js",
|
||||
"deps/cjs-module-lexer/dist/lexer.js",
|
||||
"deps/undici/undici.js"
|
||||
],
|
||||
"node_byteorder": "little",
|
||||
"node_debug_lib": "false",
|
||||
"node_enable_d8": "false",
|
||||
"node_enable_v8_vtunejit": "false",
|
||||
"node_fipsinstall": "false",
|
||||
"node_install_corepack": "true",
|
||||
"node_install_npm": "true",
|
||||
"node_library_files": [
|
||||
"lib/_http_agent.js",
|
||||
"lib/_http_client.js",
|
||||
"lib/_http_common.js",
|
||||
"lib/_http_incoming.js",
|
||||
"lib/_http_outgoing.js",
|
||||
"lib/_http_server.js",
|
||||
"lib/_stream_duplex.js",
|
||||
"lib/_stream_passthrough.js",
|
||||
"lib/_stream_readable.js",
|
||||
"lib/_stream_transform.js",
|
||||
"lib/_stream_wrap.js",
|
||||
"lib/_stream_writable.js",
|
||||
"lib/_tls_common.js",
|
||||
"lib/_tls_wrap.js",
|
||||
"lib/assert.js",
|
||||
"lib/assert/strict.js",
|
||||
"lib/async_hooks.js",
|
||||
"lib/buffer.js",
|
||||
"lib/child_process.js",
|
||||
"lib/cluster.js",
|
||||
"lib/console.js",
|
||||
"lib/constants.js",
|
||||
"lib/crypto.js",
|
||||
"lib/dgram.js",
|
||||
"lib/diagnostics_channel.js",
|
||||
"lib/dns.js",
|
||||
"lib/dns/promises.js",
|
||||
"lib/domain.js",
|
||||
"lib/events.js",
|
||||
"lib/fs.js",
|
||||
"lib/fs/promises.js",
|
||||
"lib/http.js",
|
||||
"lib/http2.js",
|
||||
"lib/https.js",
|
||||
"lib/inspector.js",
|
||||
"lib/inspector/promises.js",
|
||||
"lib/internal/abort_controller.js",
|
||||
"lib/internal/assert.js",
|
||||
"lib/internal/assert/assertion_error.js",
|
||||
"lib/internal/assert/calltracker.js",
|
||||
"lib/internal/async_hooks.js",
|
||||
"lib/internal/blob.js",
|
||||
"lib/internal/blocklist.js",
|
||||
"lib/internal/bootstrap/node.js",
|
||||
"lib/internal/bootstrap/realm.js",
|
||||
"lib/internal/bootstrap/switches/does_not_own_process_state.js",
|
||||
"lib/internal/bootstrap/switches/does_own_process_state.js",
|
||||
"lib/internal/bootstrap/switches/is_main_thread.js",
|
||||
"lib/internal/bootstrap/switches/is_not_main_thread.js",
|
||||
"lib/internal/bootstrap/web/exposed-wildcard.js",
|
||||
"lib/internal/bootstrap/web/exposed-window-or-worker.js",
|
||||
"lib/internal/buffer.js",
|
||||
"lib/internal/child_process.js",
|
||||
"lib/internal/child_process/serialization.js",
|
||||
"lib/internal/cli_table.js",
|
||||
"lib/internal/cluster/child.js",
|
||||
"lib/internal/cluster/primary.js",
|
||||
"lib/internal/cluster/round_robin_handle.js",
|
||||
"lib/internal/cluster/shared_handle.js",
|
||||
"lib/internal/cluster/utils.js",
|
||||
"lib/internal/cluster/worker.js",
|
||||
"lib/internal/console/constructor.js",
|
||||
"lib/internal/console/global.js",
|
||||
"lib/internal/constants.js",
|
||||
"lib/internal/crypto/aes.js",
|
||||
"lib/internal/crypto/certificate.js",
|
||||
"lib/internal/crypto/cfrg.js",
|
||||
"lib/internal/crypto/cipher.js",
|
||||
"lib/internal/crypto/diffiehellman.js",
|
||||
"lib/internal/crypto/ec.js",
|
||||
"lib/internal/crypto/hash.js",
|
||||
"lib/internal/crypto/hashnames.js",
|
||||
"lib/internal/crypto/hkdf.js",
|
||||
"lib/internal/crypto/keygen.js",
|
||||
"lib/internal/crypto/keys.js",
|
||||
"lib/internal/crypto/mac.js",
|
||||
"lib/internal/crypto/pbkdf2.js",
|
||||
"lib/internal/crypto/random.js",
|
||||
"lib/internal/crypto/rsa.js",
|
||||
"lib/internal/crypto/scrypt.js",
|
||||
"lib/internal/crypto/sig.js",
|
||||
"lib/internal/crypto/util.js",
|
||||
"lib/internal/crypto/webcrypto.js",
|
||||
"lib/internal/crypto/webidl.js",
|
||||
"lib/internal/crypto/x509.js",
|
||||
"lib/internal/debugger/inspect.js",
|
||||
"lib/internal/debugger/inspect_client.js",
|
||||
"lib/internal/debugger/inspect_repl.js",
|
||||
"lib/internal/dgram.js",
|
||||
"lib/internal/dns/callback_resolver.js",
|
||||
"lib/internal/dns/promises.js",
|
||||
"lib/internal/dns/utils.js",
|
||||
"lib/internal/encoding.js",
|
||||
"lib/internal/error_serdes.js",
|
||||
"lib/internal/errors.js",
|
||||
"lib/internal/event_target.js",
|
||||
"lib/internal/events/symbols.js",
|
||||
"lib/internal/file.js",
|
||||
"lib/internal/fixed_queue.js",
|
||||
"lib/internal/freelist.js",
|
||||
"lib/internal/freeze_intrinsics.js",
|
||||
"lib/internal/fs/cp/cp-sync.js",
|
||||
"lib/internal/fs/cp/cp.js",
|
||||
"lib/internal/fs/dir.js",
|
||||
"lib/internal/fs/promises.js",
|
||||
"lib/internal/fs/read_file_context.js",
|
||||
"lib/internal/fs/recursive_watch.js",
|
||||
"lib/internal/fs/rimraf.js",
|
||||
"lib/internal/fs/streams.js",
|
||||
"lib/internal/fs/sync_write_stream.js",
|
||||
"lib/internal/fs/utils.js",
|
||||
"lib/internal/fs/watchers.js",
|
||||
"lib/internal/heap_utils.js",
|
||||
"lib/internal/histogram.js",
|
||||
"lib/internal/http.js",
|
||||
"lib/internal/http2/compat.js",
|
||||
"lib/internal/http2/core.js",
|
||||
"lib/internal/http2/util.js",
|
||||
"lib/internal/idna.js",
|
||||
"lib/internal/inspector_async_hook.js",
|
||||
"lib/internal/js_stream_socket.js",
|
||||
"lib/internal/legacy/processbinding.js",
|
||||
"lib/internal/linkedlist.js",
|
||||
"lib/internal/main/check_syntax.js",
|
||||
"lib/internal/main/embedding.js",
|
||||
"lib/internal/main/eval_stdin.js",
|
||||
"lib/internal/main/eval_string.js",
|
||||
"lib/internal/main/inspect.js",
|
||||
"lib/internal/main/mksnapshot.js",
|
||||
"lib/internal/main/print_help.js",
|
||||
"lib/internal/main/prof_process.js",
|
||||
"lib/internal/main/repl.js",
|
||||
"lib/internal/main/run_main_module.js",
|
||||
"lib/internal/main/test_runner.js",
|
||||
"lib/internal/main/watch_mode.js",
|
||||
"lib/internal/main/worker_thread.js",
|
||||
"lib/internal/mime.js",
|
||||
"lib/internal/modules/cjs/loader.js",
|
||||
"lib/internal/modules/esm/assert.js",
|
||||
"lib/internal/modules/esm/create_dynamic_module.js",
|
||||
"lib/internal/modules/esm/fetch_module.js",
|
||||
"lib/internal/modules/esm/formats.js",
|
||||
"lib/internal/modules/esm/get_format.js",
|
||||
"lib/internal/modules/esm/handle_process_exit.js",
|
||||
"lib/internal/modules/esm/hooks.js",
|
||||
"lib/internal/modules/esm/initialize_import_meta.js",
|
||||
"lib/internal/modules/esm/load.js",
|
||||
"lib/internal/modules/esm/loader.js",
|
||||
"lib/internal/modules/esm/module_job.js",
|
||||
"lib/internal/modules/esm/module_map.js",
|
||||
"lib/internal/modules/esm/package_config.js",
|
||||
"lib/internal/modules/esm/resolve.js",
|
||||
"lib/internal/modules/esm/shared_constants.js",
|
||||
"lib/internal/modules/esm/translators.js",
|
||||
"lib/internal/modules/esm/utils.js",
|
||||
"lib/internal/modules/esm/worker.js",
|
||||
"lib/internal/modules/helpers.js",
|
||||
"lib/internal/modules/package_json_reader.js",
|
||||
"lib/internal/modules/run_main.js",
|
||||
"lib/internal/net.js",
|
||||
"lib/internal/options.js",
|
||||
"lib/internal/per_context/domexception.js",
|
||||
"lib/internal/per_context/messageport.js",
|
||||
"lib/internal/per_context/primordials.js",
|
||||
"lib/internal/perf/event_loop_delay.js",
|
||||
"lib/internal/perf/event_loop_utilization.js",
|
||||
"lib/internal/perf/nodetiming.js",
|
||||
"lib/internal/perf/observe.js",
|
||||
"lib/internal/perf/performance.js",
|
||||
"lib/internal/perf/performance_entry.js",
|
||||
"lib/internal/perf/resource_timing.js",
|
||||
"lib/internal/perf/timerify.js",
|
||||
"lib/internal/perf/usertiming.js",
|
||||
"lib/internal/perf/utils.js",
|
||||
"lib/internal/policy/manifest.js",
|
||||
"lib/internal/policy/sri.js",
|
||||
"lib/internal/priority_queue.js",
|
||||
"lib/internal/process/esm_loader.js",
|
||||
"lib/internal/process/execution.js",
|
||||
"lib/internal/process/per_thread.js",
|
||||
"lib/internal/process/permission.js",
|
||||
"lib/internal/process/policy.js",
|
||||
"lib/internal/process/pre_execution.js",
|
||||
"lib/internal/process/promises.js",
|
||||
"lib/internal/process/report.js",
|
||||
"lib/internal/process/signal.js",
|
||||
"lib/internal/process/task_queues.js",
|
||||
"lib/internal/process/warning.js",
|
||||
"lib/internal/process/worker_thread_only.js",
|
||||
"lib/internal/promise_hooks.js",
|
||||
"lib/internal/querystring.js",
|
||||
"lib/internal/readline/callbacks.js",
|
||||
"lib/internal/readline/emitKeypressEvents.js",
|
||||
"lib/internal/readline/interface.js",
|
||||
"lib/internal/readline/promises.js",
|
||||
"lib/internal/readline/utils.js",
|
||||
"lib/internal/repl.js",
|
||||
"lib/internal/repl/await.js",
|
||||
"lib/internal/repl/history.js",
|
||||
"lib/internal/repl/utils.js",
|
||||
"lib/internal/socket_list.js",
|
||||
"lib/internal/socketaddress.js",
|
||||
"lib/internal/source_map/prepare_stack_trace.js",
|
||||
"lib/internal/source_map/source_map.js",
|
||||
"lib/internal/source_map/source_map_cache.js",
|
||||
"lib/internal/stream_base_commons.js",
|
||||
"lib/internal/streams/add-abort-signal.js",
|
||||
"lib/internal/streams/buffer_list.js",
|
||||
"lib/internal/streams/compose.js",
|
||||
"lib/internal/streams/destroy.js",
|
||||
"lib/internal/streams/duplex.js",
|
||||
"lib/internal/streams/duplexify.js",
|
||||
"lib/internal/streams/end-of-stream.js",
|
||||
"lib/internal/streams/from.js",
|
||||
"lib/internal/streams/lazy_transform.js",
|
||||
"lib/internal/streams/legacy.js",
|
||||
"lib/internal/streams/operators.js",
|
||||
"lib/internal/streams/passthrough.js",
|
||||
"lib/internal/streams/pipeline.js",
|
||||
"lib/internal/streams/readable.js",
|
||||
"lib/internal/streams/state.js",
|
||||
"lib/internal/streams/transform.js",
|
||||
"lib/internal/streams/utils.js",
|
||||
"lib/internal/streams/writable.js",
|
||||
"lib/internal/structured_clone.js",
|
||||
"lib/internal/test/binding.js",
|
||||
"lib/internal/test/transfer.js",
|
||||
"lib/internal/test_runner/coverage.js",
|
||||
"lib/internal/test_runner/harness.js",
|
||||
"lib/internal/test_runner/mock.js",
|
||||
"lib/internal/test_runner/reporter/dot.js",
|
||||
"lib/internal/test_runner/reporter/spec.js",
|
||||
"lib/internal/test_runner/reporter/tap.js",
|
||||
"lib/internal/test_runner/reporter/v8-serializer.js",
|
||||
"lib/internal/test_runner/runner.js",
|
||||
"lib/internal/test_runner/test.js",
|
||||
"lib/internal/test_runner/tests_stream.js",
|
||||
"lib/internal/test_runner/utils.js",
|
||||
"lib/internal/timers.js",
|
||||
"lib/internal/tls/secure-context.js",
|
||||
"lib/internal/tls/secure-pair.js",
|
||||
"lib/internal/trace_events_async_hooks.js",
|
||||
"lib/internal/tty.js",
|
||||
"lib/internal/url.js",
|
||||
"lib/internal/util.js",
|
||||
"lib/internal/util/colors.js",
|
||||
"lib/internal/util/comparisons.js",
|
||||
"lib/internal/util/debuglog.js",
|
||||
"lib/internal/util/embedding.js",
|
||||
"lib/internal/util/inspect.js",
|
||||
"lib/internal/util/inspector.js",
|
||||
"lib/internal/util/iterable_weak_map.js",
|
||||
"lib/internal/util/parse_args/parse_args.js",
|
||||
"lib/internal/util/parse_args/utils.js",
|
||||
"lib/internal/util/types.js",
|
||||
"lib/internal/v8/startup_snapshot.js",
|
||||
"lib/internal/v8_prof_polyfill.js",
|
||||
"lib/internal/v8_prof_processor.js",
|
||||
"lib/internal/validators.js",
|
||||
"lib/internal/vm.js",
|
||||
"lib/internal/vm/module.js",
|
||||
"lib/internal/wasm_web_api.js",
|
||||
"lib/internal/watch_mode/files_watcher.js",
|
||||
"lib/internal/watchdog.js",
|
||||
"lib/internal/webidl.js",
|
||||
"lib/internal/webstreams/adapters.js",
|
||||
"lib/internal/webstreams/compression.js",
|
||||
"lib/internal/webstreams/encoding.js",
|
||||
"lib/internal/webstreams/queuingstrategies.js",
|
||||
"lib/internal/webstreams/readablestream.js",
|
||||
"lib/internal/webstreams/transfer.js",
|
||||
"lib/internal/webstreams/transformstream.js",
|
||||
"lib/internal/webstreams/util.js",
|
||||
"lib/internal/webstreams/writablestream.js",
|
||||
"lib/internal/worker.js",
|
||||
"lib/internal/worker/io.js",
|
||||
"lib/internal/worker/js_transferable.js",
|
||||
"lib/module.js",
|
||||
"lib/net.js",
|
||||
"lib/os.js",
|
||||
"lib/path.js",
|
||||
"lib/path/posix.js",
|
||||
"lib/path/win32.js",
|
||||
"lib/perf_hooks.js",
|
||||
"lib/process.js",
|
||||
"lib/punycode.js",
|
||||
"lib/querystring.js",
|
||||
"lib/readline.js",
|
||||
"lib/readline/promises.js",
|
||||
"lib/repl.js",
|
||||
"lib/stream.js",
|
||||
"lib/stream/consumers.js",
|
||||
"lib/stream/promises.js",
|
||||
"lib/stream/web.js",
|
||||
"lib/string_decoder.js",
|
||||
"lib/sys.js",
|
||||
"lib/test.js",
|
||||
"lib/test/reporters.js",
|
||||
"lib/timers.js",
|
||||
"lib/timers/promises.js",
|
||||
"lib/tls.js",
|
||||
"lib/trace_events.js",
|
||||
"lib/tty.js",
|
||||
"lib/url.js",
|
||||
"lib/util.js",
|
||||
"lib/util/types.js",
|
||||
"lib/v8.js",
|
||||
"lib/vm.js",
|
||||
"lib/wasi.js",
|
||||
"lib/worker_threads.js",
|
||||
"lib/zlib.js"
|
||||
],
|
||||
"node_module_version": 115,
|
||||
"node_no_browser_globals": "false",
|
||||
"node_prefix": "/",
|
||||
"node_release_urlbase": "https://nodejs.org/download/release/",
|
||||
"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_nghttp3": "false",
|
||||
"node_shared_ngtcp2": "false",
|
||||
"node_shared_openssl": "false",
|
||||
"node_shared_zlib": "false",
|
||||
"node_tag": "",
|
||||
"node_target_type": "executable",
|
||||
"node_use_bundled_v8": "true",
|
||||
"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_is_fips": "false",
|
||||
"openssl_quic": "true",
|
||||
"ossfuzz": "false",
|
||||
"shlib_suffix": "115.dylib",
|
||||
"single_executable_application": "true",
|
||||
"target_arch": "arm64",
|
||||
"v8_enable_31bit_smis_on_64bit_arch": 0,
|
||||
"v8_enable_gdbjit": 0,
|
||||
"v8_enable_hugepage": 0,
|
||||
"v8_enable_i18n_support": 1,
|
||||
"v8_enable_inspector": 1,
|
||||
"v8_enable_javascript_promise_hooks": 1,
|
||||
"v8_enable_lite_mode": 0,
|
||||
"v8_enable_object_print": 1,
|
||||
"v8_enable_pointer_compression": 0,
|
||||
"v8_enable_shared_ro_heap": 1,
|
||||
"v8_enable_webassembly": 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,
|
||||
"want_separate_host_toolset": 0,
|
||||
"xcode_version": "13.0",
|
||||
"nodedir": "/Users/karolsojko/Library/Caches/node-gyp/20.2.0",
|
||||
"standalone_static_library": 1,
|
||||
"user_agent": "yarn/4.0.0-rc.43 npm/? node/v20.2.0 darwin arm64"
|
||||
}
|
||||
}
|
|
@ -1,209 +0,0 @@
|
|||
# This file is generated by gyp; do not edit.
|
||||
|
||||
TOOLSET := target
|
||||
TARGET := fninspect
|
||||
DEFS_Debug := \
|
||||
'-DNODE_GYP_MODULE_NAME=fninspect' \
|
||||
'-DUSING_UV_SHARED=1' \
|
||||
'-DUSING_V8_SHARED=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS' \
|
||||
'-DV8_IMMINENT_DEPRECATION_WARNINGS' \
|
||||
'-D_GLIBCXX_USE_CXX11_ABI=1' \
|
||||
'-D_DARWIN_USE_64_BIT_INODE=1' \
|
||||
'-D_LARGEFILE_SOURCE' \
|
||||
'-D_FILE_OFFSET_BITS=64' \
|
||||
'-DOPENSSL_NO_PINSHARED' \
|
||||
'-DOPENSSL_THREADS' \
|
||||
'-DBUILDING_NODE_EXTENSION' \
|
||||
'-DDEBUG' \
|
||||
'-D_DEBUG' \
|
||||
'-DV8_ENABLE_CHECKS'
|
||||
|
||||
# Flags passed to all source files.
|
||||
CFLAGS_Debug := \
|
||||
-O0 \
|
||||
-gdwarf-2 \
|
||||
-mmacosx-version-min=10.15 \
|
||||
-arch arm64 \
|
||||
-Wall \
|
||||
-Wendif-labels \
|
||||
-W \
|
||||
-Wno-unused-parameter
|
||||
|
||||
# Flags passed to only C files.
|
||||
CFLAGS_C_Debug := \
|
||||
-fno-strict-aliasing \
|
||||
-arch x86_64 \
|
||||
-arch arm64
|
||||
|
||||
# Flags passed to only C++ files.
|
||||
CFLAGS_CC_Debug := \
|
||||
-std=gnu++17 \
|
||||
-stdlib=libc++ \
|
||||
-fno-rtti \
|
||||
-fno-exceptions \
|
||||
-fno-strict-aliasing \
|
||||
-arch x86_64 \
|
||||
-arch arm64
|
||||
|
||||
# Flags passed to only ObjC files.
|
||||
CFLAGS_OBJC_Debug :=
|
||||
|
||||
# Flags passed to only ObjC++ files.
|
||||
CFLAGS_OBJCC_Debug :=
|
||||
|
||||
INCS_Debug := \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include \
|
||||
-I$(srcdir)/../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan
|
||||
|
||||
DEFS_Release := \
|
||||
'-DNODE_GYP_MODULE_NAME=fninspect' \
|
||||
'-DUSING_UV_SHARED=1' \
|
||||
'-DUSING_V8_SHARED=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS' \
|
||||
'-DV8_IMMINENT_DEPRECATION_WARNINGS' \
|
||||
'-D_GLIBCXX_USE_CXX11_ABI=1' \
|
||||
'-D_DARWIN_USE_64_BIT_INODE=1' \
|
||||
'-D_LARGEFILE_SOURCE' \
|
||||
'-D_FILE_OFFSET_BITS=64' \
|
||||
'-DOPENSSL_NO_PINSHARED' \
|
||||
'-DOPENSSL_THREADS' \
|
||||
'-DBUILDING_NODE_EXTENSION'
|
||||
|
||||
# Flags passed to all source files.
|
||||
CFLAGS_Release := \
|
||||
-O3 \
|
||||
-gdwarf-2 \
|
||||
-mmacosx-version-min=10.15 \
|
||||
-arch arm64 \
|
||||
-Wall \
|
||||
-Wendif-labels \
|
||||
-W \
|
||||
-Wno-unused-parameter
|
||||
|
||||
# Flags passed to only C files.
|
||||
CFLAGS_C_Release := \
|
||||
-fno-strict-aliasing \
|
||||
-arch x86_64 \
|
||||
-arch arm64
|
||||
|
||||
# Flags passed to only C++ files.
|
||||
CFLAGS_CC_Release := \
|
||||
-std=gnu++17 \
|
||||
-stdlib=libc++ \
|
||||
-fno-rtti \
|
||||
-fno-exceptions \
|
||||
-fno-strict-aliasing \
|
||||
-arch x86_64 \
|
||||
-arch arm64
|
||||
|
||||
# Flags passed to only ObjC files.
|
||||
CFLAGS_OBJC_Release :=
|
||||
|
||||
# Flags passed to only ObjC++ files.
|
||||
CFLAGS_OBJCC_Release :=
|
||||
|
||||
INCS_Release := \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include \
|
||||
-I$(srcdir)/../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan
|
||||
|
||||
OBJS := \
|
||||
$(obj).target/$(TARGET)/src/addon.o \
|
||||
$(obj).target/$(TARGET)/src/code-events.o \
|
||||
$(obj).target/$(TARGET)/src/event-queue.o \
|
||||
$(obj).target/$(TARGET)/src/func-info.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))
|
||||
$(OBJS): GYP_OBJCFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))
|
||||
$(OBJS): GYP_OBJCXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(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 := \
|
||||
-arch x86_64 \
|
||||
-arch arm64 \
|
||||
-undefined dynamic_lookup \
|
||||
-Wl,-search_paths_first \
|
||||
-mmacosx-version-min=10.15 \
|
||||
-arch arm64 \
|
||||
-L$(builddir) \
|
||||
-stdlib=libc++
|
||||
|
||||
LIBTOOLFLAGS_Debug := \
|
||||
-arch x86_64 \
|
||||
-arch arm64 \
|
||||
-undefined dynamic_lookup \
|
||||
-Wl,-search_paths_first
|
||||
|
||||
LDFLAGS_Release := \
|
||||
-arch x86_64 \
|
||||
-arch arm64 \
|
||||
-undefined dynamic_lookup \
|
||||
-Wl,-search_paths_first \
|
||||
-mmacosx-version-min=10.15 \
|
||||
-arch arm64 \
|
||||
-L$(builddir) \
|
||||
-stdlib=libc++
|
||||
|
||||
LIBTOOLFLAGS_Release := \
|
||||
-arch x86_64 \
|
||||
-arch arm64 \
|
||||
-undefined dynamic_lookup \
|
||||
-Wl,-search_paths_first
|
||||
|
||||
LIBS :=
|
||||
|
||||
$(builddir)/fninspect.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
|
||||
$(builddir)/fninspect.node: LIBS := $(LIBS)
|
||||
$(builddir)/fninspect.node: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))
|
||||
$(builddir)/fninspect.node: TOOLSET := $(TOOLSET)
|
||||
$(builddir)/fninspect.node: $(OBJS) FORCE_DO_CMD
|
||||
$(call do_cmd,solink_module)
|
||||
|
||||
all_deps += $(builddir)/fninspect.node
|
||||
# Add target alias
|
||||
.PHONY: fninspect
|
||||
fninspect: $(builddir)/fninspect.node
|
||||
|
||||
# Short alias for building this executable.
|
||||
.PHONY: fninspect.node
|
||||
fninspect.node: $(builddir)/fninspect.node
|
||||
|
||||
# Add executable to "all" target.
|
||||
.PHONY: all
|
||||
all: $(builddir)/fninspect.node
|
||||
|
|
@ -1,772 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
# Generated by gyp. Do not edit.
|
||||
# Copyright (c) 2012 Google Inc. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
"""Utility functions to perform Xcode-style build steps.
|
||||
|
||||
These functions are executed via gyp-mac-tool when using the Makefile generator.
|
||||
"""
|
||||
|
||||
|
||||
import fcntl
|
||||
import fnmatch
|
||||
import glob
|
||||
import json
|
||||
import os
|
||||
import plistlib
|
||||
import re
|
||||
import shutil
|
||||
import struct
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
|
||||
def main(args):
|
||||
executor = MacTool()
|
||||
exit_code = executor.Dispatch(args)
|
||||
if exit_code is not None:
|
||||
sys.exit(exit_code)
|
||||
|
||||
|
||||
class MacTool:
|
||||
"""This class performs all the Mac tooling steps. The methods can either be
|
||||
executed directly, or dispatched from an argument list."""
|
||||
|
||||
def Dispatch(self, args):
|
||||
"""Dispatches a string command to a method."""
|
||||
if len(args) < 1:
|
||||
raise Exception("Not enough arguments")
|
||||
|
||||
method = "Exec%s" % self._CommandifyName(args[0])
|
||||
return getattr(self, method)(*args[1:])
|
||||
|
||||
def _CommandifyName(self, name_string):
|
||||
"""Transforms a tool name like copy-info-plist to CopyInfoPlist"""
|
||||
return name_string.title().replace("-", "")
|
||||
|
||||
def ExecCopyBundleResource(self, source, dest, convert_to_binary):
|
||||
"""Copies a resource file to the bundle/Resources directory, performing any
|
||||
necessary compilation on each resource."""
|
||||
convert_to_binary = convert_to_binary == "True"
|
||||
extension = os.path.splitext(source)[1].lower()
|
||||
if os.path.isdir(source):
|
||||
# Copy tree.
|
||||
# TODO(thakis): This copies file attributes like mtime, while the
|
||||
# single-file branch below doesn't. This should probably be changed to
|
||||
# be consistent with the single-file branch.
|
||||
if os.path.exists(dest):
|
||||
shutil.rmtree(dest)
|
||||
shutil.copytree(source, dest)
|
||||
elif extension == ".xib":
|
||||
return self._CopyXIBFile(source, dest)
|
||||
elif extension == ".storyboard":
|
||||
return self._CopyXIBFile(source, dest)
|
||||
elif extension == ".strings" and not convert_to_binary:
|
||||
self._CopyStringsFile(source, dest)
|
||||
else:
|
||||
if os.path.exists(dest):
|
||||
os.unlink(dest)
|
||||
shutil.copy(source, dest)
|
||||
|
||||
if convert_to_binary and extension in (".plist", ".strings"):
|
||||
self._ConvertToBinary(dest)
|
||||
|
||||
def _CopyXIBFile(self, source, dest):
|
||||
"""Compiles a XIB file with ibtool into a binary plist in the bundle."""
|
||||
|
||||
# ibtool sometimes crashes with relative paths. See crbug.com/314728.
|
||||
base = os.path.dirname(os.path.realpath(__file__))
|
||||
if os.path.relpath(source):
|
||||
source = os.path.join(base, source)
|
||||
if os.path.relpath(dest):
|
||||
dest = os.path.join(base, dest)
|
||||
|
||||
args = ["xcrun", "ibtool", "--errors", "--warnings", "--notices"]
|
||||
|
||||
if os.environ["XCODE_VERSION_ACTUAL"] > "0700":
|
||||
args.extend(["--auto-activate-custom-fonts"])
|
||||
if "IPHONEOS_DEPLOYMENT_TARGET" in os.environ:
|
||||
args.extend(
|
||||
[
|
||||
"--target-device",
|
||||
"iphone",
|
||||
"--target-device",
|
||||
"ipad",
|
||||
"--minimum-deployment-target",
|
||||
os.environ["IPHONEOS_DEPLOYMENT_TARGET"],
|
||||
]
|
||||
)
|
||||
else:
|
||||
args.extend(
|
||||
[
|
||||
"--target-device",
|
||||
"mac",
|
||||
"--minimum-deployment-target",
|
||||
os.environ["MACOSX_DEPLOYMENT_TARGET"],
|
||||
]
|
||||
)
|
||||
|
||||
args.extend(
|
||||
["--output-format", "human-readable-text", "--compile", dest, source]
|
||||
)
|
||||
|
||||
ibtool_section_re = re.compile(r"/\*.*\*/")
|
||||
ibtool_re = re.compile(r".*note:.*is clipping its content")
|
||||
try:
|
||||
stdout = subprocess.check_output(args)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(e.output)
|
||||
raise
|
||||
current_section_header = None
|
||||
for line in stdout.splitlines():
|
||||
if ibtool_section_re.match(line):
|
||||
current_section_header = line
|
||||
elif not ibtool_re.match(line):
|
||||
if current_section_header:
|
||||
print(current_section_header)
|
||||
current_section_header = None
|
||||
print(line)
|
||||
return 0
|
||||
|
||||
def _ConvertToBinary(self, dest):
|
||||
subprocess.check_call(
|
||||
["xcrun", "plutil", "-convert", "binary1", "-o", dest, dest]
|
||||
)
|
||||
|
||||
def _CopyStringsFile(self, source, dest):
|
||||
"""Copies a .strings file using iconv to reconvert the input into UTF-16."""
|
||||
input_code = self._DetectInputEncoding(source) or "UTF-8"
|
||||
|
||||
# Xcode's CpyCopyStringsFile / builtin-copyStrings seems to call
|
||||
# CFPropertyListCreateFromXMLData() behind the scenes; at least it prints
|
||||
# CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
|
||||
# semicolon in dictionary.
|
||||
# on invalid files. Do the same kind of validation.
|
||||
import CoreFoundation
|
||||
|
||||
with open(source, "rb") as in_file:
|
||||
s = in_file.read()
|
||||
d = CoreFoundation.CFDataCreate(None, s, len(s))
|
||||
_, error = CoreFoundation.CFPropertyListCreateFromXMLData(None, d, 0, None)
|
||||
if error:
|
||||
return
|
||||
|
||||
with open(dest, "wb") as fp:
|
||||
fp.write(s.decode(input_code).encode("UTF-16"))
|
||||
|
||||
def _DetectInputEncoding(self, file_name):
|
||||
"""Reads the first few bytes from file_name and tries to guess the text
|
||||
encoding. Returns None as a guess if it can't detect it."""
|
||||
with open(file_name, "rb") as fp:
|
||||
try:
|
||||
header = fp.read(3)
|
||||
except Exception:
|
||||
return None
|
||||
if header.startswith(b"\xFE\xFF"):
|
||||
return "UTF-16"
|
||||
elif header.startswith(b"\xFF\xFE"):
|
||||
return "UTF-16"
|
||||
elif header.startswith(b"\xEF\xBB\xBF"):
|
||||
return "UTF-8"
|
||||
else:
|
||||
return None
|
||||
|
||||
def ExecCopyInfoPlist(self, source, dest, convert_to_binary, *keys):
|
||||
"""Copies the |source| Info.plist to the destination directory |dest|."""
|
||||
# Read the source Info.plist into memory.
|
||||
with open(source) as fd:
|
||||
lines = fd.read()
|
||||
|
||||
# Insert synthesized key/value pairs (e.g. BuildMachineOSBuild).
|
||||
plist = plistlib.readPlistFromString(lines)
|
||||
if keys:
|
||||
plist.update(json.loads(keys[0]))
|
||||
lines = plistlib.writePlistToString(plist)
|
||||
|
||||
# Go through all the environment variables and replace them as variables in
|
||||
# the file.
|
||||
IDENT_RE = re.compile(r"[_/\s]")
|
||||
for key in os.environ:
|
||||
if key.startswith("_"):
|
||||
continue
|
||||
evar = "${%s}" % key
|
||||
evalue = os.environ[key]
|
||||
lines = lines.replace(lines, evar, evalue)
|
||||
|
||||
# Xcode supports various suffices on environment variables, which are
|
||||
# all undocumented. :rfc1034identifier is used in the standard project
|
||||
# template these days, and :identifier was used earlier. They are used to
|
||||
# convert non-url characters into things that look like valid urls --
|
||||
# except that the replacement character for :identifier, '_' isn't valid
|
||||
# in a URL either -- oops, hence :rfc1034identifier was born.
|
||||
evar = "${%s:identifier}" % key
|
||||
evalue = IDENT_RE.sub("_", os.environ[key])
|
||||
lines = lines.replace(lines, evar, evalue)
|
||||
|
||||
evar = "${%s:rfc1034identifier}" % key
|
||||
evalue = IDENT_RE.sub("-", os.environ[key])
|
||||
lines = lines.replace(lines, evar, evalue)
|
||||
|
||||
# Remove any keys with values that haven't been replaced.
|
||||
lines = lines.splitlines()
|
||||
for i in range(len(lines)):
|
||||
if lines[i].strip().startswith("<string>${"):
|
||||
lines[i] = None
|
||||
lines[i - 1] = None
|
||||
lines = "\n".join(line for line in lines if line is not None)
|
||||
|
||||
# Write out the file with variables replaced.
|
||||
with open(dest, "w") as fd:
|
||||
fd.write(lines)
|
||||
|
||||
# Now write out PkgInfo file now that the Info.plist file has been
|
||||
# "compiled".
|
||||
self._WritePkgInfo(dest)
|
||||
|
||||
if convert_to_binary == "True":
|
||||
self._ConvertToBinary(dest)
|
||||
|
||||
def _WritePkgInfo(self, info_plist):
|
||||
"""This writes the PkgInfo file from the data stored in Info.plist."""
|
||||
plist = plistlib.readPlist(info_plist)
|
||||
if not plist:
|
||||
return
|
||||
|
||||
# Only create PkgInfo for executable types.
|
||||
package_type = plist["CFBundlePackageType"]
|
||||
if package_type != "APPL":
|
||||
return
|
||||
|
||||
# The format of PkgInfo is eight characters, representing the bundle type
|
||||
# and bundle signature, each four characters. If that is missing, four
|
||||
# '?' characters are used instead.
|
||||
signature_code = plist.get("CFBundleSignature", "????")
|
||||
if len(signature_code) != 4: # Wrong length resets everything, too.
|
||||
signature_code = "?" * 4
|
||||
|
||||
dest = os.path.join(os.path.dirname(info_plist), "PkgInfo")
|
||||
with open(dest, "w") as fp:
|
||||
fp.write(f"{package_type}{signature_code}")
|
||||
|
||||
def ExecFlock(self, lockfile, *cmd_list):
|
||||
"""Emulates the most basic behavior of Linux's flock(1)."""
|
||||
# Rely on exception handling to report errors.
|
||||
fd = os.open(lockfile, os.O_RDONLY | os.O_NOCTTY | os.O_CREAT, 0o666)
|
||||
fcntl.flock(fd, fcntl.LOCK_EX)
|
||||
return subprocess.call(cmd_list)
|
||||
|
||||
def ExecFilterLibtool(self, *cmd_list):
|
||||
"""Calls libtool and filters out '/path/to/libtool: file: foo.o has no
|
||||
symbols'."""
|
||||
libtool_re = re.compile(
|
||||
r"^.*libtool: (?:for architecture: \S* )?" r"file: .* has no symbols$"
|
||||
)
|
||||
libtool_re5 = re.compile(
|
||||
r"^.*libtool: warning for library: "
|
||||
+ r".* the table of contents is empty "
|
||||
+ r"\(no object file members in the library define global symbols\)$"
|
||||
)
|
||||
env = os.environ.copy()
|
||||
# Ref:
|
||||
# http://www.opensource.apple.com/source/cctools/cctools-809/misc/libtool.c
|
||||
# The problem with this flag is that it resets the file mtime on the file to
|
||||
# epoch=0, e.g. 1970-1-1 or 1969-12-31 depending on timezone.
|
||||
env["ZERO_AR_DATE"] = "1"
|
||||
libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE, env=env)
|
||||
err = libtoolout.communicate()[1].decode("utf-8")
|
||||
for line in err.splitlines():
|
||||
if not libtool_re.match(line) and not libtool_re5.match(line):
|
||||
print(line, file=sys.stderr)
|
||||
# Unconditionally touch the output .a file on the command line if present
|
||||
# and the command succeeded. A bit hacky.
|
||||
if not libtoolout.returncode:
|
||||
for i in range(len(cmd_list) - 1):
|
||||
if cmd_list[i] == "-o" and cmd_list[i + 1].endswith(".a"):
|
||||
os.utime(cmd_list[i + 1], None)
|
||||
break
|
||||
return libtoolout.returncode
|
||||
|
||||
def ExecPackageIosFramework(self, framework):
|
||||
# Find the name of the binary based on the part before the ".framework".
|
||||
binary = os.path.basename(framework).split(".")[0]
|
||||
module_path = os.path.join(framework, "Modules")
|
||||
if not os.path.exists(module_path):
|
||||
os.mkdir(module_path)
|
||||
module_template = (
|
||||
"framework module %s {\n"
|
||||
' umbrella header "%s.h"\n'
|
||||
"\n"
|
||||
" export *\n"
|
||||
" module * { export * }\n"
|
||||
"}\n" % (binary, binary)
|
||||
)
|
||||
|
||||
with open(os.path.join(module_path, "module.modulemap"), "w") as module_file:
|
||||
module_file.write(module_template)
|
||||
|
||||
def ExecPackageFramework(self, framework, version):
|
||||
"""Takes a path to Something.framework and the Current version of that and
|
||||
sets up all the symlinks."""
|
||||
# Find the name of the binary based on the part before the ".framework".
|
||||
binary = os.path.basename(framework).split(".")[0]
|
||||
|
||||
CURRENT = "Current"
|
||||
RESOURCES = "Resources"
|
||||
VERSIONS = "Versions"
|
||||
|
||||
if not os.path.exists(os.path.join(framework, VERSIONS, version, binary)):
|
||||
# Binary-less frameworks don't seem to contain symlinks (see e.g.
|
||||
# chromium's out/Debug/org.chromium.Chromium.manifest/ bundle).
|
||||
return
|
||||
|
||||
# Move into the framework directory to set the symlinks correctly.
|
||||
pwd = os.getcwd()
|
||||
os.chdir(framework)
|
||||
|
||||
# Set up the Current version.
|
||||
self._Relink(version, os.path.join(VERSIONS, CURRENT))
|
||||
|
||||
# Set up the root symlinks.
|
||||
self._Relink(os.path.join(VERSIONS, CURRENT, binary), binary)
|
||||
self._Relink(os.path.join(VERSIONS, CURRENT, RESOURCES), RESOURCES)
|
||||
|
||||
# Back to where we were before!
|
||||
os.chdir(pwd)
|
||||
|
||||
def _Relink(self, dest, link):
|
||||
"""Creates a symlink to |dest| named |link|. If |link| already exists,
|
||||
it is overwritten."""
|
||||
if os.path.lexists(link):
|
||||
os.remove(link)
|
||||
os.symlink(dest, link)
|
||||
|
||||
def ExecCompileIosFrameworkHeaderMap(self, out, framework, *all_headers):
|
||||
framework_name = os.path.basename(framework).split(".")[0]
|
||||
all_headers = [os.path.abspath(header) for header in all_headers]
|
||||
filelist = {}
|
||||
for header in all_headers:
|
||||
filename = os.path.basename(header)
|
||||
filelist[filename] = header
|
||||
filelist[os.path.join(framework_name, filename)] = header
|
||||
WriteHmap(out, filelist)
|
||||
|
||||
def ExecCopyIosFrameworkHeaders(self, framework, *copy_headers):
|
||||
header_path = os.path.join(framework, "Headers")
|
||||
if not os.path.exists(header_path):
|
||||
os.makedirs(header_path)
|
||||
for header in copy_headers:
|
||||
shutil.copy(header, os.path.join(header_path, os.path.basename(header)))
|
||||
|
||||
def ExecCompileXcassets(self, keys, *inputs):
|
||||
"""Compiles multiple .xcassets files into a single .car file.
|
||||
|
||||
This invokes 'actool' to compile all the inputs .xcassets files. The
|
||||
|keys| arguments is a json-encoded dictionary of extra arguments to
|
||||
pass to 'actool' when the asset catalogs contains an application icon
|
||||
or a launch image.
|
||||
|
||||
Note that 'actool' does not create the Assets.car file if the asset
|
||||
catalogs does not contains imageset.
|
||||
"""
|
||||
command_line = [
|
||||
"xcrun",
|
||||
"actool",
|
||||
"--output-format",
|
||||
"human-readable-text",
|
||||
"--compress-pngs",
|
||||
"--notices",
|
||||
"--warnings",
|
||||
"--errors",
|
||||
]
|
||||
is_iphone_target = "IPHONEOS_DEPLOYMENT_TARGET" in os.environ
|
||||
if is_iphone_target:
|
||||
platform = os.environ["CONFIGURATION"].split("-")[-1]
|
||||
if platform not in ("iphoneos", "iphonesimulator"):
|
||||
platform = "iphonesimulator"
|
||||
command_line.extend(
|
||||
[
|
||||
"--platform",
|
||||
platform,
|
||||
"--target-device",
|
||||
"iphone",
|
||||
"--target-device",
|
||||
"ipad",
|
||||
"--minimum-deployment-target",
|
||||
os.environ["IPHONEOS_DEPLOYMENT_TARGET"],
|
||||
"--compile",
|
||||
os.path.abspath(os.environ["CONTENTS_FOLDER_PATH"]),
|
||||
]
|
||||
)
|
||||
else:
|
||||
command_line.extend(
|
||||
[
|
||||
"--platform",
|
||||
"macosx",
|
||||
"--target-device",
|
||||
"mac",
|
||||
"--minimum-deployment-target",
|
||||
os.environ["MACOSX_DEPLOYMENT_TARGET"],
|
||||
"--compile",
|
||||
os.path.abspath(os.environ["UNLOCALIZED_RESOURCES_FOLDER_PATH"]),
|
||||
]
|
||||
)
|
||||
if keys:
|
||||
keys = json.loads(keys)
|
||||
for key, value in keys.items():
|
||||
arg_name = "--" + key
|
||||
if isinstance(value, bool):
|
||||
if value:
|
||||
command_line.append(arg_name)
|
||||
elif isinstance(value, list):
|
||||
for v in value:
|
||||
command_line.append(arg_name)
|
||||
command_line.append(str(v))
|
||||
else:
|
||||
command_line.append(arg_name)
|
||||
command_line.append(str(value))
|
||||
# Note: actool crashes if inputs path are relative, so use os.path.abspath
|
||||
# to get absolute path name for inputs.
|
||||
command_line.extend(map(os.path.abspath, inputs))
|
||||
subprocess.check_call(command_line)
|
||||
|
||||
def ExecMergeInfoPlist(self, output, *inputs):
|
||||
"""Merge multiple .plist files into a single .plist file."""
|
||||
merged_plist = {}
|
||||
for path in inputs:
|
||||
plist = self._LoadPlistMaybeBinary(path)
|
||||
self._MergePlist(merged_plist, plist)
|
||||
plistlib.writePlist(merged_plist, output)
|
||||
|
||||
def ExecCodeSignBundle(self, key, entitlements, provisioning, path, preserve):
|
||||
"""Code sign a bundle.
|
||||
|
||||
This function tries to code sign an iOS bundle, following the same
|
||||
algorithm as Xcode:
|
||||
1. pick the provisioning profile that best match the bundle identifier,
|
||||
and copy it into the bundle as embedded.mobileprovision,
|
||||
2. copy Entitlements.plist from user or SDK next to the bundle,
|
||||
3. code sign the bundle.
|
||||
"""
|
||||
substitutions, overrides = self._InstallProvisioningProfile(
|
||||
provisioning, self._GetCFBundleIdentifier()
|
||||
)
|
||||
entitlements_path = self._InstallEntitlements(
|
||||
entitlements, substitutions, overrides
|
||||
)
|
||||
|
||||
args = ["codesign", "--force", "--sign", key]
|
||||
if preserve == "True":
|
||||
args.extend(["--deep", "--preserve-metadata=identifier,entitlements"])
|
||||
else:
|
||||
args.extend(["--entitlements", entitlements_path])
|
||||
args.extend(["--timestamp=none", path])
|
||||
subprocess.check_call(args)
|
||||
|
||||
def _InstallProvisioningProfile(self, profile, bundle_identifier):
|
||||
"""Installs embedded.mobileprovision into the bundle.
|
||||
|
||||
Args:
|
||||
profile: string, optional, short name of the .mobileprovision file
|
||||
to use, if empty or the file is missing, the best file installed
|
||||
will be used
|
||||
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
||||
|
||||
Returns:
|
||||
A tuple containing two dictionary: variables substitutions and values
|
||||
to overrides when generating the entitlements file.
|
||||
"""
|
||||
source_path, provisioning_data, team_id = self._FindProvisioningProfile(
|
||||
profile, bundle_identifier
|
||||
)
|
||||
target_path = os.path.join(
|
||||
os.environ["BUILT_PRODUCTS_DIR"],
|
||||
os.environ["CONTENTS_FOLDER_PATH"],
|
||||
"embedded.mobileprovision",
|
||||
)
|
||||
shutil.copy2(source_path, target_path)
|
||||
substitutions = self._GetSubstitutions(bundle_identifier, team_id + ".")
|
||||
return substitutions, provisioning_data["Entitlements"]
|
||||
|
||||
def _FindProvisioningProfile(self, profile, bundle_identifier):
|
||||
"""Finds the .mobileprovision file to use for signing the bundle.
|
||||
|
||||
Checks all the installed provisioning profiles (or if the user specified
|
||||
the PROVISIONING_PROFILE variable, only consult it) and select the most
|
||||
specific that correspond to the bundle identifier.
|
||||
|
||||
Args:
|
||||
profile: string, optional, short name of the .mobileprovision file
|
||||
to use, if empty or the file is missing, the best file installed
|
||||
will be used
|
||||
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
||||
|
||||
Returns:
|
||||
A tuple of the path to the selected provisioning profile, the data of
|
||||
the embedded plist in the provisioning profile and the team identifier
|
||||
to use for code signing.
|
||||
|
||||
Raises:
|
||||
SystemExit: if no .mobileprovision can be used to sign the bundle.
|
||||
"""
|
||||
profiles_dir = os.path.join(
|
||||
os.environ["HOME"], "Library", "MobileDevice", "Provisioning Profiles"
|
||||
)
|
||||
if not os.path.isdir(profiles_dir):
|
||||
print(
|
||||
"cannot find mobile provisioning for %s" % (bundle_identifier),
|
||||
file=sys.stderr,
|
||||
)
|
||||
sys.exit(1)
|
||||
provisioning_profiles = None
|
||||
if profile:
|
||||
profile_path = os.path.join(profiles_dir, profile + ".mobileprovision")
|
||||
if os.path.exists(profile_path):
|
||||
provisioning_profiles = [profile_path]
|
||||
if not provisioning_profiles:
|
||||
provisioning_profiles = glob.glob(
|
||||
os.path.join(profiles_dir, "*.mobileprovision")
|
||||
)
|
||||
valid_provisioning_profiles = {}
|
||||
for profile_path in provisioning_profiles:
|
||||
profile_data = self._LoadProvisioningProfile(profile_path)
|
||||
app_id_pattern = profile_data.get("Entitlements", {}).get(
|
||||
"application-identifier", ""
|
||||
)
|
||||
for team_identifier in profile_data.get("TeamIdentifier", []):
|
||||
app_id = f"{team_identifier}.{bundle_identifier}"
|
||||
if fnmatch.fnmatch(app_id, app_id_pattern):
|
||||
valid_provisioning_profiles[app_id_pattern] = (
|
||||
profile_path,
|
||||
profile_data,
|
||||
team_identifier,
|
||||
)
|
||||
if not valid_provisioning_profiles:
|
||||
print(
|
||||
"cannot find mobile provisioning for %s" % (bundle_identifier),
|
||||
file=sys.stderr,
|
||||
)
|
||||
sys.exit(1)
|
||||
# If the user has multiple provisioning profiles installed that can be
|
||||
# used for ${bundle_identifier}, pick the most specific one (ie. the
|
||||
# provisioning profile whose pattern is the longest).
|
||||
selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
|
||||
return valid_provisioning_profiles[selected_key]
|
||||
|
||||
def _LoadProvisioningProfile(self, profile_path):
|
||||
"""Extracts the plist embedded in a provisioning profile.
|
||||
|
||||
Args:
|
||||
profile_path: string, path to the .mobileprovision file
|
||||
|
||||
Returns:
|
||||
Content of the plist embedded in the provisioning profile as a dictionary.
|
||||
"""
|
||||
with tempfile.NamedTemporaryFile() as temp:
|
||||
subprocess.check_call(
|
||||
["security", "cms", "-D", "-i", profile_path, "-o", temp.name]
|
||||
)
|
||||
return self._LoadPlistMaybeBinary(temp.name)
|
||||
|
||||
def _MergePlist(self, merged_plist, plist):
|
||||
"""Merge |plist| into |merged_plist|."""
|
||||
for key, value in plist.items():
|
||||
if isinstance(value, dict):
|
||||
merged_value = merged_plist.get(key, {})
|
||||
if isinstance(merged_value, dict):
|
||||
self._MergePlist(merged_value, value)
|
||||
merged_plist[key] = merged_value
|
||||
else:
|
||||
merged_plist[key] = value
|
||||
else:
|
||||
merged_plist[key] = value
|
||||
|
||||
def _LoadPlistMaybeBinary(self, plist_path):
|
||||
"""Loads into a memory a plist possibly encoded in binary format.
|
||||
|
||||
This is a wrapper around plistlib.readPlist that tries to convert the
|
||||
plist to the XML format if it can't be parsed (assuming that it is in
|
||||
the binary format).
|
||||
|
||||
Args:
|
||||
plist_path: string, path to a plist file, in XML or binary format
|
||||
|
||||
Returns:
|
||||
Content of the plist as a dictionary.
|
||||
"""
|
||||
try:
|
||||
# First, try to read the file using plistlib that only supports XML,
|
||||
# and if an exception is raised, convert a temporary copy to XML and
|
||||
# load that copy.
|
||||
return plistlib.readPlist(plist_path)
|
||||
except Exception:
|
||||
pass
|
||||
with tempfile.NamedTemporaryFile() as temp:
|
||||
shutil.copy2(plist_path, temp.name)
|
||||
subprocess.check_call(["plutil", "-convert", "xml1", temp.name])
|
||||
return plistlib.readPlist(temp.name)
|
||||
|
||||
def _GetSubstitutions(self, bundle_identifier, app_identifier_prefix):
|
||||
"""Constructs a dictionary of variable substitutions for Entitlements.plist.
|
||||
|
||||
Args:
|
||||
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
||||
app_identifier_prefix: string, value for AppIdentifierPrefix
|
||||
|
||||
Returns:
|
||||
Dictionary of substitutions to apply when generating Entitlements.plist.
|
||||
"""
|
||||
return {
|
||||
"CFBundleIdentifier": bundle_identifier,
|
||||
"AppIdentifierPrefix": app_identifier_prefix,
|
||||
}
|
||||
|
||||
def _GetCFBundleIdentifier(self):
|
||||
"""Extracts CFBundleIdentifier value from Info.plist in the bundle.
|
||||
|
||||
Returns:
|
||||
Value of CFBundleIdentifier in the Info.plist located in the bundle.
|
||||
"""
|
||||
info_plist_path = os.path.join(
|
||||
os.environ["TARGET_BUILD_DIR"], os.environ["INFOPLIST_PATH"]
|
||||
)
|
||||
info_plist_data = self._LoadPlistMaybeBinary(info_plist_path)
|
||||
return info_plist_data["CFBundleIdentifier"]
|
||||
|
||||
def _InstallEntitlements(self, entitlements, substitutions, overrides):
|
||||
"""Generates and install the ${BundleName}.xcent entitlements file.
|
||||
|
||||
Expands variables "$(variable)" pattern in the source entitlements file,
|
||||
add extra entitlements defined in the .mobileprovision file and the copy
|
||||
the generated plist to "${BundlePath}.xcent".
|
||||
|
||||
Args:
|
||||
entitlements: string, optional, path to the Entitlements.plist template
|
||||
to use, defaults to "${SDKROOT}/Entitlements.plist"
|
||||
substitutions: dictionary, variable substitutions
|
||||
overrides: dictionary, values to add to the entitlements
|
||||
|
||||
Returns:
|
||||
Path to the generated entitlements file.
|
||||
"""
|
||||
source_path = entitlements
|
||||
target_path = os.path.join(
|
||||
os.environ["BUILT_PRODUCTS_DIR"], os.environ["PRODUCT_NAME"] + ".xcent"
|
||||
)
|
||||
if not source_path:
|
||||
source_path = os.path.join(os.environ["SDKROOT"], "Entitlements.plist")
|
||||
shutil.copy2(source_path, target_path)
|
||||
data = self._LoadPlistMaybeBinary(target_path)
|
||||
data = self._ExpandVariables(data, substitutions)
|
||||
if overrides:
|
||||
for key in overrides:
|
||||
if key not in data:
|
||||
data[key] = overrides[key]
|
||||
plistlib.writePlist(data, target_path)
|
||||
return target_path
|
||||
|
||||
def _ExpandVariables(self, data, substitutions):
|
||||
"""Expands variables "$(variable)" in data.
|
||||
|
||||
Args:
|
||||
data: object, can be either string, list or dictionary
|
||||
substitutions: dictionary, variable substitutions to perform
|
||||
|
||||
Returns:
|
||||
Copy of data where each references to "$(variable)" has been replaced
|
||||
by the corresponding value found in substitutions, or left intact if
|
||||
the key was not found.
|
||||
"""
|
||||
if isinstance(data, str):
|
||||
for key, value in substitutions.items():
|
||||
data = data.replace("$(%s)" % key, value)
|
||||
return data
|
||||
if isinstance(data, list):
|
||||
return [self._ExpandVariables(v, substitutions) for v in data]
|
||||
if isinstance(data, dict):
|
||||
return {k: self._ExpandVariables(data[k], substitutions) for k in data}
|
||||
return data
|
||||
|
||||
|
||||
def NextGreaterPowerOf2(x):
|
||||
return 2 ** (x).bit_length()
|
||||
|
||||
|
||||
def WriteHmap(output_name, filelist):
|
||||
"""Generates a header map based on |filelist|.
|
||||
|
||||
Per Mark Mentovai:
|
||||
A header map is structured essentially as a hash table, keyed by names used
|
||||
in #includes, and providing pathnames to the actual files.
|
||||
|
||||
The implementation below and the comment above comes from inspecting:
|
||||
http://www.opensource.apple.com/source/distcc/distcc-2503/distcc_dist/include_server/headermap.py?txt
|
||||
while also looking at the implementation in clang in:
|
||||
https://llvm.org/svn/llvm-project/cfe/trunk/lib/Lex/HeaderMap.cpp
|
||||
"""
|
||||
magic = 1751998832
|
||||
version = 1
|
||||
_reserved = 0
|
||||
count = len(filelist)
|
||||
capacity = NextGreaterPowerOf2(count)
|
||||
strings_offset = 24 + (12 * capacity)
|
||||
max_value_length = max(len(value) for value in filelist.values())
|
||||
|
||||
out = open(output_name, "wb")
|
||||
out.write(
|
||||
struct.pack(
|
||||
"<LHHLLLL",
|
||||
magic,
|
||||
version,
|
||||
_reserved,
|
||||
strings_offset,
|
||||
count,
|
||||
capacity,
|
||||
max_value_length,
|
||||
)
|
||||
)
|
||||
|
||||
# Create empty hashmap buckets.
|
||||
buckets = [None] * capacity
|
||||
for file, path in filelist.items():
|
||||
key = 0
|
||||
for c in file:
|
||||
key += ord(c.lower()) * 13
|
||||
|
||||
# Fill next empty bucket.
|
||||
while buckets[key & capacity - 1] is not None:
|
||||
key = key + 1
|
||||
buckets[key & capacity - 1] = (file, path)
|
||||
|
||||
next_offset = 1
|
||||
for bucket in buckets:
|
||||
if bucket is None:
|
||||
out.write(struct.pack("<LLL", 0, 0, 0))
|
||||
else:
|
||||
(file, path) = bucket
|
||||
key_offset = next_offset
|
||||
prefix_offset = key_offset + len(file) + 1
|
||||
suffix_offset = prefix_offset + len(os.path.dirname(path) + os.sep) + 1
|
||||
next_offset = suffix_offset + len(os.path.basename(path)) + 1
|
||||
out.write(struct.pack("<LLL", key_offset, prefix_offset, suffix_offset))
|
||||
|
||||
# Pad byte since next offset starts at 1.
|
||||
out.write(struct.pack("<x"))
|
||||
|
||||
for bucket in buckets:
|
||||
if bucket is not None:
|
||||
(file, path) = bucket
|
||||
out.write(struct.pack("<%ds" % len(file), file))
|
||||
out.write(struct.pack("<s", "\0"))
|
||||
base = os.path.dirname(path) + os.sep
|
||||
out.write(struct.pack("<%ds" % len(base), base))
|
||||
out.write(struct.pack("<s", "\0"))
|
||||
path = os.path.basename(path)
|
||||
out.write(struct.pack("<%ds" % len(path), path))
|
||||
out.write(struct.pack("<s", "\0"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main(sys.argv[1:]))
|
|
@ -1 +0,0 @@
|
|||
/opt/homebrew/opt/python@3.11/bin/python3.11
|
|
@ -1,45 +0,0 @@
|
|||
/* eslint-disable @typescript-eslint/ban-types */
|
||||
|
||||
declare interface FunctionInfo {
|
||||
file: string;
|
||||
column: number;
|
||||
lineNumber: number;
|
||||
method: string;
|
||||
type: 'AsyncFunction' | 'Function';
|
||||
}
|
||||
|
||||
declare interface CodeEvent {
|
||||
func: string;
|
||||
lineNumber: number;
|
||||
script: string;
|
||||
type:
|
||||
| 'Builtin'
|
||||
| 'Callback'
|
||||
| 'Eval'
|
||||
| 'Function'
|
||||
| 'InterpretedFunction'
|
||||
| 'Handler'
|
||||
| 'BytecodeHandler'
|
||||
| 'LazyCompile'
|
||||
| 'RegExp'
|
||||
| 'Script'
|
||||
| 'Stub'
|
||||
| 'Relocation'
|
||||
}
|
||||
|
||||
declare const fnInspect: {
|
||||
/** Retrieves name, type, column, lineNumber and file from a function reference */
|
||||
funcInfo(fn: Function): FunctionInfo | null;
|
||||
|
||||
/**
|
||||
* Sets the function for processing v8 code events.
|
||||
* Will start listening for code events if not already listening.
|
||||
* starts a timer which polls for an available code event once every `interval` ms.
|
||||
*/
|
||||
setCodeEventListener(cb: (event: CodeEvent) => void, interval?: number): void;
|
||||
|
||||
/** Stop listening for v8 code events */
|
||||
stopListening(): void;
|
||||
};
|
||||
|
||||
export = fnInspect;
|
|
@ -1,58 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
const binding = require('node-gyp-build')(__dirname);
|
||||
|
||||
let codeEventsInited = false;
|
||||
let codeEventListener = null;
|
||||
let timer = null;
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Retrieves name, type, column, lineNumber and file from a function reference
|
||||
*
|
||||
* @param {Function} fn function reference to obtain info
|
||||
* @return {FunctionInfo | null}
|
||||
*/
|
||||
funcInfo(fn) {
|
||||
const info = binding.funcInfo(fn);
|
||||
if (info === null) return null;
|
||||
|
||||
info.type = fn.constructor.name;
|
||||
return info;
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the function for processing v8 code events.
|
||||
* Will start listening for code events if not already listening.
|
||||
* starts a timer which polls for an available code event once every `interval` value.
|
||||
*
|
||||
* @param {Function} cb callback function to call
|
||||
* @param {number} [interval=1] how often to get code events in ms
|
||||
*/
|
||||
setCodeEventListener(cb, interval = 1) {
|
||||
if (codeEventsInited) {
|
||||
codeEventListener = cb;
|
||||
return;
|
||||
}
|
||||
|
||||
binding.initHandler();
|
||||
codeEventsInited = true;
|
||||
codeEventListener = cb;
|
||||
timer = setInterval(() => {
|
||||
const codeEvent = binding.getNextCodeEvent();
|
||||
if (codeEvent) codeEventListener(codeEvent);
|
||||
}, interval);
|
||||
},
|
||||
|
||||
/**
|
||||
* Stop listening for v8 code events
|
||||
*/
|
||||
stopListening() {
|
||||
if (!codeEventsInited) return;
|
||||
|
||||
clearInterval(timer);
|
||||
binding.deinitHandler();
|
||||
codeEventListener = null;
|
||||
codeEventsInited = false;
|
||||
},
|
||||
};
|
|
@ -1,63 +0,0 @@
|
|||
{
|
||||
"name": "@contrast/fn-inspect",
|
||||
"version": "3.3.1",
|
||||
"description": "Retrieve function name and line number from a function reference",
|
||||
"keywords": [
|
||||
"instrumentation"
|
||||
],
|
||||
"author": "Contrast Security",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Contrast-Security-Inc/node-fn-inspect.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Contrast-Security-Inc/node-fn-inspect/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Contrast-Security-Inc/node-fn-inspect#readme",
|
||||
"files": [
|
||||
"prebuilds/",
|
||||
"src/",
|
||||
"binding.gyp",
|
||||
"index.d.ts",
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"scripts": {
|
||||
"install": "node-gyp-build",
|
||||
"prepare": "husky install",
|
||||
"build": "prebuildify -t 12.13.0 -t 14.15.0 -t 16.9.1 -t 18.7.0 --strip",
|
||||
"build:linux": "prebuildify-cross -i centos7-devtoolset7 -i alpine -i linux-arm64 -t 12.13.0 -t 14.15.0 -t 16.9.1 -t 18.7.0 --strip",
|
||||
"build:darwin": "npm run build -- --arch x64+arm64",
|
||||
"build:win32": "npm run build",
|
||||
"clean": "rimraf build/ coverage/ prebuilds/",
|
||||
"download": "node scripts/download-artifacts.js",
|
||||
"test": "c8 --reporter lcov --reporter text mocha .",
|
||||
"test:valgrind": "valgrind --xml=yes --xml-file=./valgrind.xml --trace-children=yes --leak-check=full --show-leak-kinds=all mocha . && node scripts/parse-valgrind.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.13.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"nan": "^2.16.0",
|
||||
"node-gyp-build": "^4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@contrast/eslint-config": "^3.1.1",
|
||||
"@ls-lint/ls-lint": "^1.11.2",
|
||||
"@octokit/rest": "^18.12.0",
|
||||
"c8": "^7.11.3",
|
||||
"chai": "^4.3.6",
|
||||
"husky": "^8.0.1",
|
||||
"inquirer": "^8.2.4",
|
||||
"lint-staged": "^13.0.1",
|
||||
"mocha": "^10.0.0",
|
||||
"node-gyp": "^9.0.0",
|
||||
"prebuildify": "^5.0.0",
|
||||
"prebuildify-cross": "^5.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"unzipper": "^0.10.11",
|
||||
"xml-js": "^1.6.11"
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,14 +0,0 @@
|
|||
#include <nan.h>
|
||||
|
||||
#include "code-events.h"
|
||||
#include "func-info.h"
|
||||
|
||||
NAN_MODULE_INIT(Init) {
|
||||
NAN_EXPORT(target, initHandler);
|
||||
NAN_EXPORT(target, deinitHandler);
|
||||
NAN_EXPORT(target, getNextCodeEvent);
|
||||
|
||||
NAN_EXPORT(target, funcInfo);
|
||||
}
|
||||
|
||||
NODE_MODULE(addon, Init)
|
|
@ -1,75 +0,0 @@
|
|||
#include "code-events.h"
|
||||
#include "event-queue.h"
|
||||
|
||||
using namespace v8;
|
||||
|
||||
class FnInspectCodeEventHandler : public CodeEventHandler {
|
||||
public:
|
||||
FnInspectCodeEventHandler(Isolate *isolate) : CodeEventHandler(isolate) {
|
||||
this->isolate = isolate;
|
||||
}
|
||||
|
||||
void Handle(CodeEvent *event) {
|
||||
/*
|
||||
* If Handle() is invoked from a worker thread (i.e. during
|
||||
* garbage collection) we don't have access to the isolate
|
||||
* so just bail
|
||||
*/
|
||||
if (Isolate::GetCurrent() != isolate) {
|
||||
return;
|
||||
}
|
||||
events.enqueue(event);
|
||||
}
|
||||
|
||||
EventNode *dequeue() {
|
||||
return this->events.dequeue();
|
||||
}
|
||||
|
||||
unsigned int eventCount() {
|
||||
return this->events.length;
|
||||
}
|
||||
|
||||
private:
|
||||
Isolate *isolate;
|
||||
EventQueue events;
|
||||
};
|
||||
|
||||
FnInspectCodeEventHandler *handler;
|
||||
|
||||
NAN_METHOD(initHandler) {
|
||||
handler = new FnInspectCodeEventHandler(info.GetIsolate());
|
||||
handler->Enable();
|
||||
}
|
||||
|
||||
NAN_METHOD(deinitHandler) {
|
||||
handler->Disable();
|
||||
|
||||
delete handler;
|
||||
handler = NULL;
|
||||
}
|
||||
|
||||
NAN_METHOD(getNextCodeEvent) {
|
||||
EventNode *node = handler->dequeue();
|
||||
|
||||
if (!node)
|
||||
return;
|
||||
|
||||
Local<Object> obj = Nan::New<Object>();
|
||||
|
||||
Nan::Set(obj,
|
||||
Nan::New("script").ToLocalChecked(),
|
||||
Nan::New(node->script).ToLocalChecked());
|
||||
Nan::Set(obj,
|
||||
Nan::New("func").ToLocalChecked(),
|
||||
Nan::New(node->func).ToLocalChecked());
|
||||
Nan::Set(obj,
|
||||
Nan::New("type").ToLocalChecked(),
|
||||
Nan::New(node->type).ToLocalChecked());
|
||||
Nan::Set(obj,
|
||||
Nan::New("lineNumber").ToLocalChecked(),
|
||||
Nan::New(node->lineNumber));
|
||||
|
||||
info.GetReturnValue().Set(obj);
|
||||
|
||||
delete node;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <nan.h>
|
||||
#include <v8-profiler.h>
|
||||
#include <v8.h>
|
||||
|
||||
#include "event-queue.h"
|
||||
|
||||
NAN_METHOD(initHandler);
|
||||
NAN_METHOD(deinitHandler);
|
||||
NAN_METHOD(getNextCodeEvent);
|
|
@ -1,61 +0,0 @@
|
|||
#include <v8-profiler.h>
|
||||
#include <v8.h>
|
||||
|
||||
#include "event-queue.h"
|
||||
|
||||
using namespace v8;
|
||||
|
||||
EventQueue::EventQueue() {
|
||||
this->head = NULL;
|
||||
this->tail = NULL;
|
||||
this->length = 0;
|
||||
}
|
||||
|
||||
EventQueue::~EventQueue() {
|
||||
EventNode *tmp;
|
||||
while (this->head) {
|
||||
tmp = this->head;
|
||||
;
|
||||
this->head = this->head->next;
|
||||
delete tmp;
|
||||
}
|
||||
}
|
||||
|
||||
void EventQueue::enqueue(CodeEvent *event) {
|
||||
if (Nan::Utf8String(event->GetScriptName()).length() == 0)
|
||||
return;
|
||||
|
||||
EventNode *node = new EventNode();
|
||||
|
||||
node->type = strdup(CodeEvent::GetCodeEventTypeName(event->GetCodeType()));
|
||||
node->script = strdup(*Nan::Utf8String(event->GetScriptName()));
|
||||
node->func = strdup(*Nan::Utf8String(event->GetFunctionName()));
|
||||
node->lineNumber = event->GetScriptLine();
|
||||
|
||||
if (this->tail) {
|
||||
this->tail->next = node;
|
||||
this->tail = node;
|
||||
} else {
|
||||
this->head = node;
|
||||
this->tail = node;
|
||||
}
|
||||
|
||||
this->length += 1;
|
||||
}
|
||||
|
||||
EventNode *EventQueue::dequeue() {
|
||||
EventNode *node = this->head;
|
||||
|
||||
if (!node)
|
||||
return NULL;
|
||||
|
||||
this->head = this->head->next;
|
||||
|
||||
if (this->head == NULL) {
|
||||
this->tail = NULL;
|
||||
}
|
||||
|
||||
this->length -= 1;
|
||||
|
||||
return node;
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <nan.h>
|
||||
#include <v8-profiler.h>
|
||||
#include <v8.h>
|
||||
|
||||
using namespace v8;
|
||||
|
||||
class EventNode {
|
||||
public:
|
||||
char *type;
|
||||
char *script;
|
||||
char *func;
|
||||
int lineNumber;
|
||||
EventNode *next;
|
||||
~EventNode() {
|
||||
free(this->type);
|
||||
free(this->script);
|
||||
free(this->func);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Implements a simple queue of code events that can be
|
||||
* consumed.
|
||||
*
|
||||
* Thread-Safety: There's no locking on these methods so
|
||||
* they aren't thread safe. However this should be OK
|
||||
* as the expectation is these methods are only ever called
|
||||
* from the main JS thread and they are blocking, there will
|
||||
* only ever be a single thread calling it as a time. We
|
||||
* may want to revisit this if we ever want to support
|
||||
* handling events from worker_threads.
|
||||
*/
|
||||
class EventQueue {
|
||||
public:
|
||||
EventQueue();
|
||||
~EventQueue();
|
||||
void enqueue(CodeEvent *event);
|
||||
EventNode *dequeue();
|
||||
unsigned int length;
|
||||
|
||||
private:
|
||||
EventNode *head;
|
||||
EventNode *tail;
|
||||
};
|
|
@ -1,28 +0,0 @@
|
|||
#include "func-info.h"
|
||||
|
||||
using namespace v8;
|
||||
|
||||
NAN_METHOD(funcInfo) {
|
||||
if (info.Length() < 1 || info[0].IsEmpty() || !info[0]->IsFunction()) {
|
||||
info.GetReturnValue().Set(Nan::Null());
|
||||
return;
|
||||
}
|
||||
|
||||
Local<Function> fn = info[0].As<Function>();
|
||||
|
||||
Local<Object> obj = Nan::New<Object>();
|
||||
Local<Value> resourceName = fn->GetScriptOrigin().ResourceName();
|
||||
|
||||
if (!resourceName.IsEmpty()) {
|
||||
Nan::Set(obj, Nan::New("file").ToLocalChecked(), resourceName);
|
||||
Nan::Set(obj,
|
||||
Nan::New("lineNumber").ToLocalChecked(),
|
||||
Nan::New(fn->GetScriptLineNumber()));
|
||||
Nan::Set(obj, Nan::New("method").ToLocalChecked(), fn->GetName());
|
||||
Nan::Set(obj,
|
||||
Nan::New("column").ToLocalChecked(),
|
||||
Nan::New(fn->GetScriptColumnNumber()));
|
||||
}
|
||||
|
||||
info.GetReturnValue().Set(obj);
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <nan.h>
|
||||
#include <v8.h>
|
||||
|
||||
NAN_METHOD(funcInfo);
|
|
@ -1,305 +0,0 @@
|
|||
### v9.0.0 (2022-08-01)
|
||||
|
||||
* **BREAKING** Removed support for Node 12.
|
||||
|
||||
The minimum supported version is now Node v14. For further information on our support policy, see: https://docs.newrelic.com/docs/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent.
|
||||
|
||||
* Added support for Node 18.
|
||||
|
||||
* Fixed GC binder to properly record Garbage Collection metrics in Node 18.
|
||||
|
||||
* Resolved several dev-dependency audit warnings.
|
||||
|
||||
* Bumped minimum `nan` version to ^2.16.0.
|
||||
|
||||
### v8.0.0 (2022-03-22)
|
||||
|
||||
* **BREAKING** Removed RUSageMeter. This was used to get resource usage statistics via `libuv`. It is no longer needed since Node.js version 12 has support via `process.cpuUsage`.
|
||||
|
||||
* Fixed spelling in compatibility documentation.
|
||||
|
||||
* Added integration tests for downloading with proxy.
|
||||
|
||||
* Fixed the download tests to skip when running on branch or unsupported architectures.
|
||||
|
||||
### v7.1.2 (2022-02-23)
|
||||
|
||||
* Added `windows-latest` run for Node 16 only back to CI.
|
||||
|
||||
* Added clarifying language to agent impacts when the module fails to install to install script.
|
||||
* Indicated which page the missing metrics impact.
|
||||
* Added new blurb to failure as the initial message can be missed/skimmed-over when there is significant build process logging.
|
||||
* Indicated it is safe to run in production.
|
||||
|
||||
### v7.1.1 (2022-02-16)
|
||||
|
||||
* Replaced usage of `proxy-agent` with `https-proxy-agent`.
|
||||
|
||||
* Bumped `nan` to ^2.15.0.
|
||||
|
||||
* Updated `add-to-board` to use org level `NODE_AGENT_GH_TOKEN`
|
||||
|
||||
* Changed trigger on binary upload to wait for release of module instead of waiting for a tag that starts with `v` to be created
|
||||
|
||||
* Updated CI workflow to use `windows-2019` image instead of `windows-latest`.
|
||||
|
||||
### v7.1.0 (2022-01-11)
|
||||
|
||||
* Added ability to download pre-builts through a proxy host.
|
||||
* Use `NR_NATIVE_METRICS_PROXY_HOST=<proxy_host> npm i @newrelic/native-metrics`.
|
||||
|
||||
* Fixed deprecated code, updated `fs.existsSync` to `fs.accessSync` and using `NULL` vs. the more modern `nullptr`.
|
||||
|
||||
* Added workflow to automate preparing release notes by reusing the newrelic/node-newrelic/.github/workflows/prep-release.yml@main workflow from agent repository.
|
||||
|
||||
* Added job to automatically add issues/pr to Node.js Engineering board
|
||||
|
||||
### v7.0.2 (2021-08-26):
|
||||
|
||||
* Updated code to only check `node-gyp` version when the module needs to be built to avoid hanging node and subsequently causing OOM errors.
|
||||
* Added a pre-commit hook to check if package.json changes and run `oss third-party manifest` and `oss third-party notices`. This will ensure the `third_party_manifest.json` and `THIRD_PARTY_NOTICES.md` are up to date.
|
||||
* Fixed intermittent timeout issue with the server smoke integration test.
|
||||
|
||||
Excluded native metric install setup time from server soak test timeout.
|
||||
* Added `@newrelic/eslint-config` to rely on a centralized eslint ruleset.
|
||||
* Added `husky` + `lint-staged` to run linting on all staged js files.
|
||||
* Added integration tests for pre-build and upload tasks.
|
||||
* Upgraded setup-node CI job to v2 and changed the linting node version to `lts/*` for future proofing.
|
||||
|
||||
### v7.0.1 (2021-07-20):
|
||||
|
||||
* Added support for Node 16.
|
||||
* **BREAKING** Removed support for Node 10.
|
||||
|
||||
The minimum supported version is now Node v12. For further information on our support policy, see: https://docs.newrelic.com/docs/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent.
|
||||
|
||||
* Updated release workflow to run on Node v12.x, 14.x, and v16.x.
|
||||
* Added files list to package.json instead of relying on `.npmignore`.
|
||||
* Removed unused `bin/test-all-node.sh`.
|
||||
* Removed semver check for Resource Unit meter availability.
|
||||
* Fixed v7.0.0 by adding `binding.gyp` to package.json files list.
|
||||
|
||||
### v7.0.0 (2021-07-20):
|
||||
|
||||
* **This release has been deprecated.** Please use version 7.0.1 or higher.
|
||||
|
||||
### v6.0.2 (2021-06-16):
|
||||
|
||||
* Changes hasCalledBack from a constant to a variable to avoid failure when it gets reassigned.
|
||||
Thank you @paulgoertzen-merico for the bug fix.
|
||||
* Added 'no-const-assign' lint rule.
|
||||
|
||||
### v6.0.1 (2021-06-15):
|
||||
|
||||
* Created a standalone upload script to avoid issues where aws-sdk does not exist.
|
||||
* Bumped tap to ^15.0.9.
|
||||
* Replaced deprecated tap methods with preferred ones.
|
||||
* Updated CONTRIBUTING.md to reference the New Relic org wide Code of Conduct.
|
||||
* Added lib/upload.js to the .npmignore as it is not needed for the module to function.
|
||||
* Bumped nan to ^2.14.2.
|
||||
|
||||
### v6.0.0 (2020-11-03):
|
||||
|
||||
* Removed Node v8.x from ci.
|
||||
* Updated README to be consistent with OSS template.
|
||||
* Added open source policy workflow.
|
||||
* Supressing warnings during installation on alpine docker image.
|
||||
Thank you @eyedean for the contribution.
|
||||
* Updated name and job-name in release workflow.
|
||||
* Filtered out tags for CI workflow to prevent running on tag push for releases. The release job handles full testing.
|
||||
|
||||
### v5.3.0 (2020-08-06):
|
||||
|
||||
* Updated to Apache 2.0 license.
|
||||
* Added third party notices file and metadata for dependencies.
|
||||
* Updated README with more detail.
|
||||
* Added issue templates for bugs and enhancements.
|
||||
* Added code of conduct file.
|
||||
* Updated contributing guide.
|
||||
* Added pull request template.
|
||||
* Migrated CI to GitHub Actions.
|
||||
* Added copyright headers to all source files.
|
||||
* Added additional items to .npmignore.
|
||||
|
||||
### v5.2.0 (2020-06-01):
|
||||
|
||||
* Added special binary naming case to enable usage in Electron environments.
|
||||
|
||||
Enables the module to be used in Electron environments when built with tools that add 'electron' to `npm_config_runtime` or `npm_config_disturl` (such as `electron-rebuild` or `electron-builder`). In this case, the ABI is left-off of the file name.
|
||||
|
||||
Many thanks to @frankrobert-ls for raising the issue and providing a patch!
|
||||
|
||||
Please Note: Electron is not officially supported and other issues may still exist with the module in these environments.
|
||||
|
||||
### v5.1.0 (2020-05-06):
|
||||
|
||||
* Upgraded `nan` to ^2.14.1 to resolve 'GetContents' deprecation warning with Node 14.
|
||||
|
||||
Includes addition of Node 14 coverage and builds. Many thanks to @abetomo for the contribution.
|
||||
|
||||
### v5.0.0 (2019-10-16):
|
||||
|
||||
* **BREAKING** Removed support for Node 6, 7, 9 and 11.
|
||||
|
||||
The minimum supported version of the native metrics module is now Node v8. For further information on our support policy, see: https://docs.newrelic.com/docs/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent.
|
||||
|
||||
* Added support for Node v12.
|
||||
|
||||
### v4.1.0 (2019-02-07):
|
||||
|
||||
* Added support for insecure (http) binary hosts. Use at your own discretion.
|
||||
|
||||
The default host remains as New Relic's binary repository behind an `https`
|
||||
server. To use an `http` endpoint you must manually configure it yourself.
|
||||
|
||||
Special thanks to Adam Brett (@adambrett) and Guilherme Nagatomo (@guilhermehn)
|
||||
for contributing this feature.
|
||||
|
||||
### v4.0.0 (2019-01-22):
|
||||
|
||||
* **BREAKING**: Dropped support for Node versions <6.
|
||||
|
||||
* Added pre-execution log message calling out that this is an optional
|
||||
dependency in the agent.
|
||||
|
||||
* Simplified final error by removing most of the confusing `Failed to...`
|
||||
messages.
|
||||
|
||||
### v3.1.2 (2018-10-22):
|
||||
|
||||
* Corrected check for build flags to base on gyp version, not Node version.
|
||||
|
||||
Previously, when checking if the old `\t:` syntax should be used, this looked
|
||||
for Node <10.8.0. Now this looks for node-gyp <3.7.0. This accounts for
|
||||
situations where users install their own versions of node-gyp.
|
||||
|
||||
Special thanks to Eric Boureau (@eboureau) for contributing this fix.
|
||||
|
||||
### v3.1.1 (2018-09-10):
|
||||
|
||||
* Fixed building the module on Windows with Node v10.8.0 or greater.
|
||||
|
||||
Special thanks to Elmar Burke (@elmarburke) for this contribution!
|
||||
|
||||
### v3.1.0 (2018-07-02):
|
||||
|
||||
* Added support for caching prebuilt binaries for firewalled deployments.
|
||||
|
||||
Simply set the `NR_NATIVE_METRICS_DOWNLOAD_HOST` environment variable to the
|
||||
protocol and host for the download (e.g. `http://your-internal-cache/`) and
|
||||
`NR_NATIVE_METRICS_REMOTE_PATH` to the path to the download folder (e.g.
|
||||
`path/to/downloads/folder`).
|
||||
|
||||
Special thanks to Adam Brett (@adambrett) for contributing this feature.
|
||||
|
||||
* Added support and pre-built binaries for Node 10.
|
||||
|
||||
### v3.0.0 (2018-06-04):
|
||||
|
||||
* **BREAKING** Removed support for Node 0.12.
|
||||
|
||||
The minimum supported version of the native metrics module is now Node v4.
|
||||
|
||||
* **BREAKING** Removed `gc` event in favor of `getGCMetrics()` method.
|
||||
|
||||
The `gc` event will no longer be emitted for each garbage collection by V8.
|
||||
Instead, metrics for garbage collections are aggregated in C++ and can be
|
||||
retrieved by calling `getGCMetrics()`. Like `getLoopMetrics()`, this new
|
||||
method will reset the aggregated metrics.
|
||||
|
||||
* Added pre-built binaries for Node 5 and 7.
|
||||
|
||||
### v2.4.0 (2018-04-20):
|
||||
|
||||
* Added `NR_NATIVE_METRICS_NO_BUILD` and `NR_NATIVE_METRICS_NO_DOWNLOAD`
|
||||
environment variables.
|
||||
|
||||
These are just environment variable versions of the `--no-build` and
|
||||
`--no-download` flags introduced in v2.3.0.
|
||||
|
||||
### v2.3.0 (2018-04-19):
|
||||
|
||||
* Added `--no-build` and `--no-download` flags for install script.
|
||||
|
||||
These flags prevent the installer for the native metrics from either building
|
||||
or downloading binaries. If both are specified, `--no-download` is ignored.
|
||||
|
||||
### v2.2.0 (2018-02-12):
|
||||
|
||||
* The package will now pull down pre-built binaries if compilation fails.
|
||||
|
||||
After confirming that the binary downloading functionality works, the feature
|
||||
has been enabled by default. The installation script will still default to a
|
||||
fresh build where possible, using the download option as a fall back.
|
||||
|
||||
* The process will no longer be held open due to pending timers.
|
||||
|
||||
Previously, the timer used to calculate the CPU usage by a tick of the event
|
||||
loop was left pending, causing the process to hang.
|
||||
|
||||
|
||||
### v2.1.2 (2017-09-26):
|
||||
|
||||
* Metric timers no longer hold the process open.
|
||||
|
||||
Thanks to @samshull for the contribution!
|
||||
|
||||
### v2.1.1 (2017-04-03):
|
||||
|
||||
* Fixed build error on Windows thanks to Maximilian Haupt (@0x7f).
|
||||
|
||||
* Added C++-layer unit testing using [gtest](https://github.com/google/googletest).
|
||||
|
||||
* Updated readme with correct installation for the New Relic Agent v1.
|
||||
|
||||
### v2.1.0 (2017-02-06):
|
||||
|
||||
* Added an event loop CPU usage metric.
|
||||
|
||||
The module will now report round trip CPU usage metrics for Node's event loop. This
|
||||
metric can be read off with `nativeMetrics.getLoopMetrics()` and will
|
||||
represent the amount of CPU time per tick of the event loop.
|
||||
|
||||
### v2.0.2 (2017-01-19):
|
||||
|
||||
* Removed pre-compiling binaries using the `node-pre-gyp` module.
|
||||
|
||||
Previously we provided pre-compiled binaries for certain platforms and versions of Node.
|
||||
However, this caused issues for customers using shrinkwrapping. In order to support
|
||||
shrinkwrapping as well as all versions of Node and npm that our customers use, we have
|
||||
decided to remove this feature. This means that in order to use this module, users now
|
||||
need to have a compiler on the machine where it is being installed.
|
||||
See [node-gyp] (https://www.npmjs.com/package/node-gyp#installation) for more
|
||||
information on compiling native addons.
|
||||
|
||||
### v2.0.0 (2017-01-04):
|
||||
|
||||
* Removed support for Node 0.10.
|
||||
|
||||
The `segfault-handler` dependency no longer compiles on Node 0.10 in our tests.
|
||||
|
||||
* The `node-pre-gyp` module is now a bundled dependency.
|
||||
|
||||
Previously it was installed using a preinstall script, which was causing an issue with
|
||||
shrinkwrapping parent projects. Thanks to Robert Rossman (@Alaneor) for
|
||||
the contribution!
|
||||
|
||||
* Added License section to the Readme file.
|
||||
|
||||
### v1.0.0 (2016-12-07):
|
||||
|
||||
* General release. No code changes from v0.1.1.
|
||||
|
||||
### v0.1.1 (2016-12-05):
|
||||
|
||||
* Added guard against binding GC events more than once.
|
||||
|
||||
* Removed OS X from Travis to temporarily get around extremely long builds.
|
||||
Added script to run tests locally across multiple versions of Node.
|
||||
|
||||
* Added test for checking licenses of dependencies.
|
||||
|
||||
### v0.1.0 (2016-11-29):
|
||||
|
||||
* Added `gc` event with duration and type of garbage collection.
|
||||
* Added `usage` event with current and diff of resource usage stats.
|
|
@ -1,98 +0,0 @@
|
|||
# Guidelines for Contributing Code
|
||||
|
||||
New Relic welcomes code contributions by the Node community to this module, and
|
||||
have taken effort to make this process easy for both contributors and our
|
||||
development team.
|
||||
|
||||
## Feature Requests
|
||||
|
||||
Feature requests should be submitted in the [Issue tracker](../../issues), with
|
||||
a description of the expected behavior & use case. Before submitting an Issue,
|
||||
please search for similar ones in the [closed
|
||||
issues](../../issues?q=is%3Aissue+is%3Aclosed+label%3Aenhancement).
|
||||
|
||||
## Pull Requests
|
||||
|
||||
We can only accept PRs for version v5.3.0 or greater due to open source
|
||||
licensing restrictions.
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
Before contributing please read the [code of conduct](https://github.com/newrelic/.github/blob/main/CODE_OF_CONDUCT.md)
|
||||
|
||||
Note that our [code of conduct](https://github.com/newrelic/.github/blob/main/CODE_OF_CONDUCT.md) applies to all platforms
|
||||
and venues related to this project; please follow it in all your interactions
|
||||
with the project and its participants.
|
||||
|
||||
## Contributor License Agreement
|
||||
|
||||
Keep in mind that when you submit your Pull Request, you'll need to sign the
|
||||
CLA via the click-through using CLA-Assistant. If you'd like to execute our
|
||||
corporate CLA, or if you have any questions, please drop us an email at
|
||||
opensource@newrelic.com.
|
||||
|
||||
For more information about CLAs, please check out Alex Russell’s excellent
|
||||
post, [“Why Do I Need to Sign
|
||||
This?”](https://infrequently.org/2008/06/why-do-i-need-to-sign-this/).
|
||||
|
||||
## Slack
|
||||
|
||||
We host a public Slack with a dedicated channel for contributors and
|
||||
maintainers of open source projects hosted by New Relic. If you are
|
||||
contributing to this project, you're welcome to request access to the
|
||||
\#oss-contributors channel in the newrelicusers.slack.com workspace. To request
|
||||
access, see https://newrelicusers-signup.herokuapp.com/.
|
||||
|
||||
## PR Guidelines
|
||||
|
||||
### Version Support
|
||||
|
||||
When contributing, keep in mind that New Relic customers (that's you!) are running many different versions of Node, some of them pretty old. Changes that depend on the newest version of Node will probably be rejected, especially if they replace something backwards compatible.
|
||||
|
||||
Be aware that the instrumentation needs to work with a wide range of versions of the instrumented modules, and that code that looks nonsensical or overcomplicated may be that way for compatibility-related reasons. Read all the comments and check the related tests before deciding whether existing code is incorrect.
|
||||
|
||||
If you’re planning on contributing a new feature or an otherwise complex contribution, we kindly ask you to start a conversation with the maintainer team by opening up an Github issue first.
|
||||
|
||||
### General Guidelines
|
||||
|
||||
In general, we try to limit adding third-party production dependencies. If one is necessary, please be prepared to make a clear case for the need.
|
||||
|
||||
### Coding Style Guidelines/Conventions
|
||||
|
||||
We use eslint to enforce certain coding standards. Please see our [.eslintrc](./.eslintrc.js) file for specific rule configuration.
|
||||
|
||||
### Testing Guidelines
|
||||
|
||||
The native metrics module includes a suite of unit and functional tests which should be used to
|
||||
verify your changes don't break existing functionality.
|
||||
|
||||
All tests are stored in `tests/` and are written using
|
||||
[node-tap](https://www.npmjs.com/package/tap) with the extension `.tap.js`.
|
||||
|
||||
#### Running Tests
|
||||
|
||||
Running the test suite is simple. Just run:
|
||||
|
||||
npm test
|
||||
|
||||
This will install all the necessary modules and run the unit tests in standalone mode, followed by
|
||||
the functional tests if all of the unit tests pass.
|
||||
|
||||
To just run unit tests, run the following:
|
||||
|
||||
npm run unit
|
||||
|
||||
#### Writing Tests
|
||||
|
||||
For most contributions it is strongly recommended to add additional tests which
|
||||
exercise your changes. This helps us efficiently incorporate your changes into
|
||||
our mainline codebase and provides a safeguard that your change won't be broken
|
||||
by future development. Because of this, we require that all changes come with
|
||||
tests. You are welcome to submit pull requests with untested changes, but they
|
||||
won't be merged until you or the development team have an opportunity to write
|
||||
tests for them.
|
||||
|
||||
There are some rare cases where code changes do not result in changed
|
||||
functionality (e.g. a performance optimization) and new tests are not required.
|
||||
In general, including tests with your pull request dramatically increases the
|
||||
chances it will be accepted.
|
|
@ -1,201 +0,0 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -1,181 +0,0 @@
|
|||
[![Community Plus header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Plus.png)](https://opensource.newrelic.com/oss-category/#community-plus)
|
||||
|
||||
# Native Metrics for New Relic Node.js Agent [![native-metrics CI][ci-badge]][ci-link]
|
||||
|
||||
This module provides hooks into the native layer of Node.js to provide metrics for
|
||||
the [New Relic Node.js Agent][npm-newrelic]. It gathers information that isn't
|
||||
available at the JS layer about the V8 virtual machine and the process health.
|
||||
It comes packaged with the New Relic Agent since v2, and there is nothing that
|
||||
needs to be done. For Agent v1 you need only to install the module alongside
|
||||
[`newrelic`][npm-newrelic].
|
||||
|
||||
## Installation and Getting Started
|
||||
|
||||
Typically, most users use the version auto-installed by the agent.
|
||||
|
||||
In some cases, installing a specific version is ideal. For example, new features or major changes might be released via a major version update to this module, prior to inclusion in the main New Relic Node.js agent.
|
||||
|
||||
```
|
||||
$ npm install --save @newrelic/native-metrics
|
||||
```
|
||||
|
||||
Note that this is a native module and thus must be compiled to function.
|
||||
Pre-built binaries are provided for Linux servers running supported versions of
|
||||
Node. If you are not using Linux or not using a supported version of Node, you
|
||||
will need to have a compiler installed on the machine where this is to be
|
||||
deployed. See [node-gyp](https://www.npmjs.com/package/node-gyp#installation)
|
||||
for more information on compiling native addons.
|
||||
|
||||
If you prepare and package deployments on one machine and install them on
|
||||
another, the two machines must have the same operating system and architecture.
|
||||
If they are not, you will need to re-build the native module after deploying in
|
||||
order to get the correct binaries.
|
||||
|
||||
During installation, the module will first attempt build from source on the
|
||||
target machine. If that fails, it will attempt to download a pre-built binary
|
||||
for your system. You can disable the download attempt by setting
|
||||
`NR_NATIVE_METRICS_NO_DOWNLOAD` to `true` in your environment before
|
||||
installation.
|
||||
|
||||
```sh
|
||||
$ export NR_NATIVE_METRICS_NO_DOWNLOAD=true
|
||||
$ npm install @newrelic/native-metrics
|
||||
```
|
||||
|
||||
If you would like to skip the build step and only attempt to download a
|
||||
pre-build binary, set `NR_NATIVE_METRICS_NO_BUILD` to `true`.
|
||||
|
||||
```sh
|
||||
$ export NR_NATIVE_METRICS_NO_BUILD=true
|
||||
$ npm install @newrelic/native-metrics
|
||||
```
|
||||
|
||||
If both env vars are set, `NO_BUILD` will override `NO_DOWNLOAD`.
|
||||
|
||||
If you are working behind a firewall and want to cache the downloads internally
|
||||
you can set the value of the download host and remote path instead of forcing a
|
||||
build:
|
||||
|
||||
```sh
|
||||
$ export NR_NATIVE_METRICS_DOWNLOAD_HOST=http://your-internal-cache/
|
||||
$ export NR_NATIVE_METRICS_REMOTE_PATH=path/to/download/folder/
|
||||
$ npm install @newrelic/native-metrics
|
||||
```
|
||||
|
||||
You can also specify a proxy host to route requests through using the `NR_NATIVE_METRICS_PROXY_HOST` environment variable:
|
||||
|
||||
```sh
|
||||
$ export NR_NATIVE_METRICS_NO_BUILD=true
|
||||
$ export NR_NATIVE_METRICS_PROXY_HOST=http://your-proxy-host/
|
||||
$ npm install @newrelic/native-metrics
|
||||
```
|
||||
|
||||
For more information, please see the agent [installation guide][install-node] and [compatibility and requirements][compatibility].
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var getMetricEmitter = require('@newrelic/native-metrics')
|
||||
|
||||
var emitter = getMetricEmitter()
|
||||
if (emitter.gcEnabled) {
|
||||
setInterval(() => {
|
||||
var gcMetrics = emitter.getGCMetrics()
|
||||
for (var type in gcMetrics) {
|
||||
console.log('GC type name:', type)
|
||||
console.log('GC type id:', gcMetrics[type].typeId)
|
||||
console.log('GC metrics:', gcMetrics[type].metrics)
|
||||
}
|
||||
}, 1000)
|
||||
}
|
||||
if (emitter.usageEnabled) {
|
||||
emitter.on('usage', (usage) => console.log(usage))
|
||||
}
|
||||
if (emitter.loopEnabled) {
|
||||
setInterval(() => {
|
||||
var loopMetrics = emitter.getLoopMetrics()
|
||||
console.log('Total time:', loopMetrics.usage.total)
|
||||
console.log('Min time:', loopMetrics.usage.min)
|
||||
console.log('Max time:', loopMetrics.usage.max)
|
||||
console.log('Sum of squares:', loopMetrics.usage.sumOfSquares)
|
||||
console.log('Count:', loopMetrics.usage.count)
|
||||
}, 1000)
|
||||
}
|
||||
```
|
||||
|
||||
The metric emitter keeps a referenced timer running for its periodic sampling
|
||||
events. For a graceful shutdown of the process call `NativeMetricEmitter#unbind`.
|
||||
|
||||
```js
|
||||
getMetricEmitter().unbind() // Process will now close gracefully.
|
||||
```
|
||||
|
||||
If you would like to change the period of the sampling, simply unbind and then
|
||||
call `NativeMetricEmitter#bind` with the new period.
|
||||
|
||||
```js
|
||||
var emitter = getMetricEmitter({timeout: 15000})
|
||||
emitter.unbind()
|
||||
emitter.bind(10000) // Samples will now fire once every 10 seconds.
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
This module includes a list of unit and functional tests. To run these tests, use the following command
|
||||
|
||||
$ npm run test
|
||||
|
||||
You may also run individual test suites with the following commands
|
||||
|
||||
$ npm run unit
|
||||
$ npm run integration
|
||||
|
||||
## Support
|
||||
|
||||
Should you need assistance with New Relic products, you are in good hands with several support channels.
|
||||
|
||||
If the issue has been confirmed as a bug or is a feature request, please file a GitHub issue.
|
||||
|
||||
**Support Channels**
|
||||
|
||||
* [New Relic Documentation](https://docs.newrelic.com/docs/agents/nodejs-agent/getting-started/introduction-new-relic-nodejs): Comprehensive guidance for using our platform
|
||||
* [New Relic Community](https://discuss.newrelic.com/tags/nodeagent): The best place to engage in troubleshooting questions
|
||||
* [New Relic Developer](https://developer.newrelic.com/): Resources for building a custom observability applications
|
||||
* [New Relic University](https://learn.newrelic.com/): A range of online training for New Relic users of every level
|
||||
* [New Relic Technical Support](https://support.newrelic.com/) 24/7/365 ticketed support. Read more about our [Technical Support Offerings](https://docs.newrelic.com/docs/licenses/license-information/general-usage-licenses/support-plan).
|
||||
|
||||
## Privacy
|
||||
|
||||
At New Relic we take your privacy and the security of your information seriously, and are committed to protecting your information. We must emphasize the importance of not sharing personal data in public forums, and ask all users to scrub logs and diagnostic information for sensitive information, whether personal, proprietary, or otherwise.
|
||||
|
||||
We define "Personal Data" as any information relating to an identified or identifiable individual, including, for example, your name, phone number, post code or zip code, Device ID, IP address and email address.
|
||||
|
||||
Please review [New Relic’s General Data Privacy Notice](https://newrelic.com/termsandconditions/privacy) for more information.
|
||||
|
||||
## Roadmap
|
||||
See our [roadmap](https://github.com/newrelic/node-newrelic/blob/main/ROADMAP_Node.md), to learn more about our product vision, understand our plans, and provide us valuable feedback.
|
||||
|
||||
## Contribute
|
||||
|
||||
We encourage your contributions to improve Native Metrics for the New Relic Node.js Agent! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.
|
||||
|
||||
If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.
|
||||
|
||||
To [all contributors](https://github.com/newrelic/node-native-metrics/graphs/contributors), we thank you! Without your contribution, this project would not be what it is today.
|
||||
|
||||
If you would like to contribute to this project, please review [these guidelines](https://github.com/newrelic/node-native-metrics/blob/main/CONTRIBUTING.md).
|
||||
|
||||
**A note about vulnerabilities**
|
||||
|
||||
As noted in our [security policy](https://github.com/newrelic/node-native-metrics/security/policy), New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.
|
||||
|
||||
If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through [HackerOne](https://hackerone.com/newrelic).
|
||||
|
||||
## License
|
||||
The Native Metrics for New Relic Node.js Agent package is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.
|
||||
|
||||
[ci-badge]: https://github.com/newrelic/node-native-metrics/workflows/native-metrics%20CI/badge.svg
|
||||
[ci-link]: https://github.com/newrelic/node-native-metrics/actions?query=workflow%3A%22native-metrics+CI%22
|
||||
[npm-newrelic]: https://www.npmjs.com/package/newrelic
|
||||
[install-node]: https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/install-nodejs-agent
|
||||
[compatibility]: https://docs.newrelic.com/docs/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent
|
File diff suppressed because it is too large
Load diff
|
@ -1,3 +0,0 @@
|
|||
-----
|
||||
|
||||
Portions copyright Node.js contributors. Depending on your existing libraries and package management settings,your systems may call externally maintained libraries in addition to those listed above. See [here](https://nodejs.org/en/docs/meta/topics/dependencies/) and [here](https://github.com/nodejs/node/blob/v4.3.1/LICENSE) for additional details regarding externally maintained libraries and certain related licenses and notices.
|
|
@ -1,45 +0,0 @@
|
|||
{
|
||||
"targets": [{
|
||||
"target_name": "native_metrics",
|
||||
"sources": [
|
||||
"src/native_metrics.cpp",
|
||||
"src/GCBinder.hpp",
|
||||
"src/GCBinder.cpp",
|
||||
"src/LoopChecker.hpp",
|
||||
"src/LoopChecker.cpp",
|
||||
"src/Metric.hpp"
|
||||
],
|
||||
"defines": [
|
||||
"NOMINMAX"
|
||||
],
|
||||
"include_dirs": [
|
||||
"src",
|
||||
"<!(node -e \"require('nan')\")"
|
||||
],
|
||||
"conditions": [
|
||||
["OS == 'linux'", {
|
||||
"cflags_cc": [
|
||||
"-Wno-cast-function-type" # nan issue: https://github.com/nodejs/nan/issues/807
|
||||
]
|
||||
}]
|
||||
]
|
||||
# }, {
|
||||
# "target_name": "tests",
|
||||
# "sources": [
|
||||
# # Test deps and setup
|
||||
# "src/tests/gtest/gtest.h",
|
||||
# "src/tests/gtest-all.cc",
|
||||
# "src/tests/main.cpp",
|
||||
#
|
||||
# # Actual tests
|
||||
# "src/tests/metrics_test.cpp"
|
||||
# ],
|
||||
# "defines": [
|
||||
# "NOMINMAX"
|
||||
# ],
|
||||
# "include_dirs": [
|
||||
# "src",
|
||||
# "<!(node -e \"require('nan')\")"
|
||||
# ]
|
||||
}]
|
||||
}
|
|
@ -1,347 +0,0 @@
|
|||
# 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 ?= $(CC)
|
||||
CFLAGS.target ?= $(CPPFLAGS) $(CFLAGS)
|
||||
CXX.target ?= $(CXX)
|
||||
CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS)
|
||||
LINK.target ?= $(LINK)
|
||||
LDFLAGS.target ?= $(LDFLAGS)
|
||||
AR.target ?= $(AR)
|
||||
PLI.target ?= pli
|
||||
|
||||
# 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 ?= gcc
|
||||
CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host)
|
||||
CXX.host ?= g++
|
||||
CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host)
|
||||
LINK.host ?= $(CXX.host)
|
||||
LDFLAGS.host ?= $(LDFLAGS_host)
|
||||
AR.host ?= ar
|
||||
PLI.host ?= pli
|
||||
|
||||
# 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)) -o $@ $< $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c
|
||||
|
||||
quiet_cmd_cxx = CXX($(TOOLSET)) $@
|
||||
cmd_cxx = $(CXX.$(TOOLSET)) -o $@ $< $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c
|
||||
|
||||
quiet_cmd_objc = CXX($(TOOLSET)) $@
|
||||
cmd_objc = $(CC.$(TOOLSET)) $(GYP_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||
|
||||
quiet_cmd_objcxx = CXX($(TOOLSET)) $@
|
||||
cmd_objcxx = $(CXX.$(TOOLSET)) $(GYP_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||
|
||||
# Commands for precompiled header files.
|
||||
quiet_cmd_pch_c = CXX($(TOOLSET)) $@
|
||||
cmd_pch_c = $(CC.$(TOOLSET)) $(GYP_PCH_CFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
|
||||
quiet_cmd_pch_cc = CXX($(TOOLSET)) $@
|
||||
cmd_pch_cc = $(CC.$(TOOLSET)) $(GYP_PCH_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
|
||||
quiet_cmd_pch_m = CXX($(TOOLSET)) $@
|
||||
cmd_pch_m = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||
quiet_cmd_pch_mm = CXX($(TOOLSET)) $@
|
||||
cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||
|
||||
# gyp-mac-tool is written next to the root Makefile by gyp.
|
||||
# Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
|
||||
# already.
|
||||
quiet_cmd_mac_tool = MACTOOL $(4) $<
|
||||
cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
|
||||
|
||||
quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
|
||||
cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
|
||||
|
||||
quiet_cmd_infoplist = INFOPLIST $@
|
||||
cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -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 = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp -af "$<" "$@")
|
||||
|
||||
quiet_cmd_symlink = SYMLINK $@
|
||||
cmd_symlink = ln -sf "$<" "$@"
|
||||
|
||||
quiet_cmd_alink = LIBTOOL-STATIC $@
|
||||
cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
|
||||
|
||||
quiet_cmd_link = LINK($(TOOLSET)) $@
|
||||
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
|
||||
|
||||
quiet_cmd_solink = SOLINK($(TOOLSET)) $@
|
||||
cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
|
||||
|
||||
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
||||
cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(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 2,$(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)/%.m FORCE_DO_CMD
|
||||
@$(call do_cmd,objc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.mm FORCE_DO_CMD
|
||||
@$(call do_cmd,objcxx,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)/%.m FORCE_DO_CMD
|
||||
@$(call do_cmd,objc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.mm FORCE_DO_CMD
|
||||
@$(call do_cmd,objcxx,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)/%.m FORCE_DO_CMD
|
||||
@$(call do_cmd,objc,1)
|
||||
$(obj).$(TOOLSET)/%.o: $(obj)/%.mm FORCE_DO_CMD
|
||||
@$(call do_cmd,objcxx,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 ^,native_metrics.target.mk)))),)
|
||||
include native_metrics.target.mk
|
||||
endif
|
||||
|
||||
quiet_cmd_regen_makefile = ACTION Regenerating $@
|
||||
cmd_regen_makefile = cd $(srcdir); /Users/karolsojko/workspace/server/.yarn/unplugged/node-gyp-npm-9.3.1-43540bab9c/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/Users/karolsojko/Library/Caches/node-gyp/20.2.0" "-Dnode_gyp_dir=/Users/karolsojko/workspace/server/.yarn/unplugged/node-gyp-npm-9.3.1-43540bab9c/node_modules/node-gyp" "-Dnode_lib_file=/Users/karolsojko/Library/Caches/node-gyp/20.2.0/<(target_arch)/node.lib" "-Dmodule_root_dir=/Users/karolsojko/workspace/server/.yarn/unplugged/@newrelic-native-metrics-npm-9.0.0-590d2e713a/node_modules/@newrelic/native-metrics" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/Users/karolsojko/workspace/server/.yarn/unplugged/@newrelic-native-metrics-npm-9.0.0-590d2e713a/node_modules/@newrelic/native-metrics/build/config.gypi -I/Users/karolsojko/workspace/server/.yarn/unplugged/node-gyp-npm-9.3.1-43540bab9c/node_modules/node-gyp/addon.gypi -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/common.gypi "--toplevel-dir=." binding.gyp
|
||||
Makefile: $(srcdir)/../../../../node-gyp-npm-9.3.1-43540bab9c/node_modules/node-gyp/addon.gypi $(srcdir)/../../../../../../../../Library/Caches/node-gyp/20.2.0/include/node/common.gypi $(srcdir)/binding.gyp $(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 +0,0 @@
|
|||
cmd_Release/native_metrics.node := c++ -bundle -undefined dynamic_lookup -Wl,-search_paths_first -mmacosx-version-min=10.15 -arch arm64 -L./Release -stdlib=libc++ -o Release/native_metrics.node Release/obj.target/native_metrics/src/native_metrics.o Release/obj.target/native_metrics/src/GCBinder.o Release/obj.target/native_metrics/src/LoopChecker.o
|
|
@ -1,161 +0,0 @@
|
|||
cmd_Release/obj.target/native_metrics/src/GCBinder.o := c++ -o Release/obj.target/native_metrics/src/GCBinder.o ../src/GCBinder.cpp '-DNODE_GYP_MODULE_NAME=native_metrics' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DNOMINMAX' '-DBUILDING_NODE_EXTENSION' -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include -I../src -I../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/native_metrics/src/GCBinder.o.d.raw -c
|
||||
Release/obj.target/native_metrics/src/GCBinder.o: ../src/GCBinder.cpp \
|
||||
../src/GCBinder.hpp \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h \
|
||||
../src/Metric.hpp
|
||||
../src/GCBinder.cpp:
|
||||
../src/GCBinder.hpp:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h:
|
||||
../src/Metric.hpp:
|
|
@ -1,162 +0,0 @@
|
|||
cmd_Release/obj.target/native_metrics/src/LoopChecker.o := c++ -o Release/obj.target/native_metrics/src/LoopChecker.o ../src/LoopChecker.cpp '-DNODE_GYP_MODULE_NAME=native_metrics' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DNOMINMAX' '-DBUILDING_NODE_EXTENSION' -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include -I../src -I../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/native_metrics/src/LoopChecker.o.d.raw -c
|
||||
Release/obj.target/native_metrics/src/LoopChecker.o: \
|
||||
../src/LoopChecker.cpp \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h \
|
||||
../src/LoopChecker.hpp \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h \
|
||||
../src/Metric.hpp
|
||||
../src/LoopChecker.cpp:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h:
|
||||
../src/LoopChecker.hpp:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h:
|
||||
../src/Metric.hpp:
|
|
@ -1,162 +0,0 @@
|
|||
cmd_Release/obj.target/native_metrics/src/native_metrics.o := c++ -o Release/obj.target/native_metrics/src/native_metrics.o ../src/native_metrics.cpp '-DNODE_GYP_MODULE_NAME=native_metrics' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DNOMINMAX' '-DBUILDING_NODE_EXTENSION' -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib -I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include -I../src -I../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/native_metrics/src/native_metrics.o.d.raw -c
|
||||
Release/obj.target/native_metrics/src/native_metrics.o: \
|
||||
../src/native_metrics.cpp \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h \
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h \
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h \
|
||||
../src/GCBinder.hpp ../src/Metric.hpp ../src/LoopChecker.hpp
|
||||
../src/native_metrics.cpp:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/errno.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/unix.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/threadpool.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/uv/darwin.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/cppgc/common.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8config.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-array-buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-local-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-internal.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-version.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-maybe.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-persistent-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-weak-callback-info.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-data.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-traced-handle.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-container.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-context.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-snapshot.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-date.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-debug.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-script.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-callbacks.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-promise.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-message.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-exception.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-extension.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-external.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-function-callback.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-template.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-memory-span.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-initialization.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-isolate.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-heap.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-statistics.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-unwinder.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-embedder-state-scope.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-platform.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-json.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-locker.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-microtask-queue.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-primitive-object.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-proxy.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-regexp.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-typed-array.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-value-serializer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/v8-wasm.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/js_native_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_api_types.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_buffer.h:
|
||||
/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node/node_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_callbacks_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_maybe_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_converters_43_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_new.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_implementation_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_persistent_12_inl.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_weak.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_object_wrap.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_private.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_typedarray_contents.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_json.h:
|
||||
../../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan/nan_scriptorigin.h:
|
||||
../src/GCBinder.hpp:
|
||||
../src/Metric.hpp:
|
||||
../src/LoopChecker.hpp:
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,6 +0,0 @@
|
|||
# This file is generated by gyp; do not edit.
|
||||
|
||||
export builddir_name ?= ./build/.
|
||||
.PHONY: all
|
||||
all:
|
||||
$(MAKE) native_metrics
|
|
@ -1,412 +0,0 @@
|
|||
# Do not edit. File was generated by node-gyp's "configure" step
|
||||
{
|
||||
"target_defaults": {
|
||||
"cflags": [],
|
||||
"default_configuration": "Release",
|
||||
"defines": [],
|
||||
"include_dirs": [],
|
||||
"libraries": [],
|
||||
"msvs_configuration_platform": "ARM64",
|
||||
"xcode_configuration_platform": "arm64"
|
||||
},
|
||||
"variables": {
|
||||
"arm_fpu": "neon",
|
||||
"asan": 0,
|
||||
"coverage": "false",
|
||||
"dcheck_always_on": 0,
|
||||
"debug_nghttp2": "false",
|
||||
"debug_node": "false",
|
||||
"enable_lto": "false",
|
||||
"enable_pgo_generate": "false",
|
||||
"enable_pgo_use": "false",
|
||||
"error_on_warn": "false",
|
||||
"force_dynamic_crt": 0,
|
||||
"host_arch": "arm64",
|
||||
"icu_data_in": "../../deps/icu-tmp/icudt73l.dat",
|
||||
"icu_endianness": "l",
|
||||
"icu_gyp_path": "tools/icu/icu-generic.gyp",
|
||||
"icu_path": "deps/icu-small",
|
||||
"icu_small": "false",
|
||||
"icu_ver_major": "73",
|
||||
"is_debug": 0,
|
||||
"libdir": "lib",
|
||||
"llvm_version": "13.0",
|
||||
"napi_build_version": "8",
|
||||
"node_builtin_shareable_builtins": [
|
||||
"deps/cjs-module-lexer/lexer.js",
|
||||
"deps/cjs-module-lexer/dist/lexer.js",
|
||||
"deps/undici/undici.js"
|
||||
],
|
||||
"node_byteorder": "little",
|
||||
"node_debug_lib": "false",
|
||||
"node_enable_d8": "false",
|
||||
"node_enable_v8_vtunejit": "false",
|
||||
"node_fipsinstall": "false",
|
||||
"node_install_corepack": "true",
|
||||
"node_install_npm": "true",
|
||||
"node_library_files": [
|
||||
"lib/_http_agent.js",
|
||||
"lib/_http_client.js",
|
||||
"lib/_http_common.js",
|
||||
"lib/_http_incoming.js",
|
||||
"lib/_http_outgoing.js",
|
||||
"lib/_http_server.js",
|
||||
"lib/_stream_duplex.js",
|
||||
"lib/_stream_passthrough.js",
|
||||
"lib/_stream_readable.js",
|
||||
"lib/_stream_transform.js",
|
||||
"lib/_stream_wrap.js",
|
||||
"lib/_stream_writable.js",
|
||||
"lib/_tls_common.js",
|
||||
"lib/_tls_wrap.js",
|
||||
"lib/assert.js",
|
||||
"lib/assert/strict.js",
|
||||
"lib/async_hooks.js",
|
||||
"lib/buffer.js",
|
||||
"lib/child_process.js",
|
||||
"lib/cluster.js",
|
||||
"lib/console.js",
|
||||
"lib/constants.js",
|
||||
"lib/crypto.js",
|
||||
"lib/dgram.js",
|
||||
"lib/diagnostics_channel.js",
|
||||
"lib/dns.js",
|
||||
"lib/dns/promises.js",
|
||||
"lib/domain.js",
|
||||
"lib/events.js",
|
||||
"lib/fs.js",
|
||||
"lib/fs/promises.js",
|
||||
"lib/http.js",
|
||||
"lib/http2.js",
|
||||
"lib/https.js",
|
||||
"lib/inspector.js",
|
||||
"lib/inspector/promises.js",
|
||||
"lib/internal/abort_controller.js",
|
||||
"lib/internal/assert.js",
|
||||
"lib/internal/assert/assertion_error.js",
|
||||
"lib/internal/assert/calltracker.js",
|
||||
"lib/internal/async_hooks.js",
|
||||
"lib/internal/blob.js",
|
||||
"lib/internal/blocklist.js",
|
||||
"lib/internal/bootstrap/node.js",
|
||||
"lib/internal/bootstrap/realm.js",
|
||||
"lib/internal/bootstrap/switches/does_not_own_process_state.js",
|
||||
"lib/internal/bootstrap/switches/does_own_process_state.js",
|
||||
"lib/internal/bootstrap/switches/is_main_thread.js",
|
||||
"lib/internal/bootstrap/switches/is_not_main_thread.js",
|
||||
"lib/internal/bootstrap/web/exposed-wildcard.js",
|
||||
"lib/internal/bootstrap/web/exposed-window-or-worker.js",
|
||||
"lib/internal/buffer.js",
|
||||
"lib/internal/child_process.js",
|
||||
"lib/internal/child_process/serialization.js",
|
||||
"lib/internal/cli_table.js",
|
||||
"lib/internal/cluster/child.js",
|
||||
"lib/internal/cluster/primary.js",
|
||||
"lib/internal/cluster/round_robin_handle.js",
|
||||
"lib/internal/cluster/shared_handle.js",
|
||||
"lib/internal/cluster/utils.js",
|
||||
"lib/internal/cluster/worker.js",
|
||||
"lib/internal/console/constructor.js",
|
||||
"lib/internal/console/global.js",
|
||||
"lib/internal/constants.js",
|
||||
"lib/internal/crypto/aes.js",
|
||||
"lib/internal/crypto/certificate.js",
|
||||
"lib/internal/crypto/cfrg.js",
|
||||
"lib/internal/crypto/cipher.js",
|
||||
"lib/internal/crypto/diffiehellman.js",
|
||||
"lib/internal/crypto/ec.js",
|
||||
"lib/internal/crypto/hash.js",
|
||||
"lib/internal/crypto/hashnames.js",
|
||||
"lib/internal/crypto/hkdf.js",
|
||||
"lib/internal/crypto/keygen.js",
|
||||
"lib/internal/crypto/keys.js",
|
||||
"lib/internal/crypto/mac.js",
|
||||
"lib/internal/crypto/pbkdf2.js",
|
||||
"lib/internal/crypto/random.js",
|
||||
"lib/internal/crypto/rsa.js",
|
||||
"lib/internal/crypto/scrypt.js",
|
||||
"lib/internal/crypto/sig.js",
|
||||
"lib/internal/crypto/util.js",
|
||||
"lib/internal/crypto/webcrypto.js",
|
||||
"lib/internal/crypto/webidl.js",
|
||||
"lib/internal/crypto/x509.js",
|
||||
"lib/internal/debugger/inspect.js",
|
||||
"lib/internal/debugger/inspect_client.js",
|
||||
"lib/internal/debugger/inspect_repl.js",
|
||||
"lib/internal/dgram.js",
|
||||
"lib/internal/dns/callback_resolver.js",
|
||||
"lib/internal/dns/promises.js",
|
||||
"lib/internal/dns/utils.js",
|
||||
"lib/internal/encoding.js",
|
||||
"lib/internal/error_serdes.js",
|
||||
"lib/internal/errors.js",
|
||||
"lib/internal/event_target.js",
|
||||
"lib/internal/events/symbols.js",
|
||||
"lib/internal/file.js",
|
||||
"lib/internal/fixed_queue.js",
|
||||
"lib/internal/freelist.js",
|
||||
"lib/internal/freeze_intrinsics.js",
|
||||
"lib/internal/fs/cp/cp-sync.js",
|
||||
"lib/internal/fs/cp/cp.js",
|
||||
"lib/internal/fs/dir.js",
|
||||
"lib/internal/fs/promises.js",
|
||||
"lib/internal/fs/read_file_context.js",
|
||||
"lib/internal/fs/recursive_watch.js",
|
||||
"lib/internal/fs/rimraf.js",
|
||||
"lib/internal/fs/streams.js",
|
||||
"lib/internal/fs/sync_write_stream.js",
|
||||
"lib/internal/fs/utils.js",
|
||||
"lib/internal/fs/watchers.js",
|
||||
"lib/internal/heap_utils.js",
|
||||
"lib/internal/histogram.js",
|
||||
"lib/internal/http.js",
|
||||
"lib/internal/http2/compat.js",
|
||||
"lib/internal/http2/core.js",
|
||||
"lib/internal/http2/util.js",
|
||||
"lib/internal/idna.js",
|
||||
"lib/internal/inspector_async_hook.js",
|
||||
"lib/internal/js_stream_socket.js",
|
||||
"lib/internal/legacy/processbinding.js",
|
||||
"lib/internal/linkedlist.js",
|
||||
"lib/internal/main/check_syntax.js",
|
||||
"lib/internal/main/embedding.js",
|
||||
"lib/internal/main/eval_stdin.js",
|
||||
"lib/internal/main/eval_string.js",
|
||||
"lib/internal/main/inspect.js",
|
||||
"lib/internal/main/mksnapshot.js",
|
||||
"lib/internal/main/print_help.js",
|
||||
"lib/internal/main/prof_process.js",
|
||||
"lib/internal/main/repl.js",
|
||||
"lib/internal/main/run_main_module.js",
|
||||
"lib/internal/main/test_runner.js",
|
||||
"lib/internal/main/watch_mode.js",
|
||||
"lib/internal/main/worker_thread.js",
|
||||
"lib/internal/mime.js",
|
||||
"lib/internal/modules/cjs/loader.js",
|
||||
"lib/internal/modules/esm/assert.js",
|
||||
"lib/internal/modules/esm/create_dynamic_module.js",
|
||||
"lib/internal/modules/esm/fetch_module.js",
|
||||
"lib/internal/modules/esm/formats.js",
|
||||
"lib/internal/modules/esm/get_format.js",
|
||||
"lib/internal/modules/esm/handle_process_exit.js",
|
||||
"lib/internal/modules/esm/hooks.js",
|
||||
"lib/internal/modules/esm/initialize_import_meta.js",
|
||||
"lib/internal/modules/esm/load.js",
|
||||
"lib/internal/modules/esm/loader.js",
|
||||
"lib/internal/modules/esm/module_job.js",
|
||||
"lib/internal/modules/esm/module_map.js",
|
||||
"lib/internal/modules/esm/package_config.js",
|
||||
"lib/internal/modules/esm/resolve.js",
|
||||
"lib/internal/modules/esm/shared_constants.js",
|
||||
"lib/internal/modules/esm/translators.js",
|
||||
"lib/internal/modules/esm/utils.js",
|
||||
"lib/internal/modules/esm/worker.js",
|
||||
"lib/internal/modules/helpers.js",
|
||||
"lib/internal/modules/package_json_reader.js",
|
||||
"lib/internal/modules/run_main.js",
|
||||
"lib/internal/net.js",
|
||||
"lib/internal/options.js",
|
||||
"lib/internal/per_context/domexception.js",
|
||||
"lib/internal/per_context/messageport.js",
|
||||
"lib/internal/per_context/primordials.js",
|
||||
"lib/internal/perf/event_loop_delay.js",
|
||||
"lib/internal/perf/event_loop_utilization.js",
|
||||
"lib/internal/perf/nodetiming.js",
|
||||
"lib/internal/perf/observe.js",
|
||||
"lib/internal/perf/performance.js",
|
||||
"lib/internal/perf/performance_entry.js",
|
||||
"lib/internal/perf/resource_timing.js",
|
||||
"lib/internal/perf/timerify.js",
|
||||
"lib/internal/perf/usertiming.js",
|
||||
"lib/internal/perf/utils.js",
|
||||
"lib/internal/policy/manifest.js",
|
||||
"lib/internal/policy/sri.js",
|
||||
"lib/internal/priority_queue.js",
|
||||
"lib/internal/process/esm_loader.js",
|
||||
"lib/internal/process/execution.js",
|
||||
"lib/internal/process/per_thread.js",
|
||||
"lib/internal/process/permission.js",
|
||||
"lib/internal/process/policy.js",
|
||||
"lib/internal/process/pre_execution.js",
|
||||
"lib/internal/process/promises.js",
|
||||
"lib/internal/process/report.js",
|
||||
"lib/internal/process/signal.js",
|
||||
"lib/internal/process/task_queues.js",
|
||||
"lib/internal/process/warning.js",
|
||||
"lib/internal/process/worker_thread_only.js",
|
||||
"lib/internal/promise_hooks.js",
|
||||
"lib/internal/querystring.js",
|
||||
"lib/internal/readline/callbacks.js",
|
||||
"lib/internal/readline/emitKeypressEvents.js",
|
||||
"lib/internal/readline/interface.js",
|
||||
"lib/internal/readline/promises.js",
|
||||
"lib/internal/readline/utils.js",
|
||||
"lib/internal/repl.js",
|
||||
"lib/internal/repl/await.js",
|
||||
"lib/internal/repl/history.js",
|
||||
"lib/internal/repl/utils.js",
|
||||
"lib/internal/socket_list.js",
|
||||
"lib/internal/socketaddress.js",
|
||||
"lib/internal/source_map/prepare_stack_trace.js",
|
||||
"lib/internal/source_map/source_map.js",
|
||||
"lib/internal/source_map/source_map_cache.js",
|
||||
"lib/internal/stream_base_commons.js",
|
||||
"lib/internal/streams/add-abort-signal.js",
|
||||
"lib/internal/streams/buffer_list.js",
|
||||
"lib/internal/streams/compose.js",
|
||||
"lib/internal/streams/destroy.js",
|
||||
"lib/internal/streams/duplex.js",
|
||||
"lib/internal/streams/duplexify.js",
|
||||
"lib/internal/streams/end-of-stream.js",
|
||||
"lib/internal/streams/from.js",
|
||||
"lib/internal/streams/lazy_transform.js",
|
||||
"lib/internal/streams/legacy.js",
|
||||
"lib/internal/streams/operators.js",
|
||||
"lib/internal/streams/passthrough.js",
|
||||
"lib/internal/streams/pipeline.js",
|
||||
"lib/internal/streams/readable.js",
|
||||
"lib/internal/streams/state.js",
|
||||
"lib/internal/streams/transform.js",
|
||||
"lib/internal/streams/utils.js",
|
||||
"lib/internal/streams/writable.js",
|
||||
"lib/internal/structured_clone.js",
|
||||
"lib/internal/test/binding.js",
|
||||
"lib/internal/test/transfer.js",
|
||||
"lib/internal/test_runner/coverage.js",
|
||||
"lib/internal/test_runner/harness.js",
|
||||
"lib/internal/test_runner/mock.js",
|
||||
"lib/internal/test_runner/reporter/dot.js",
|
||||
"lib/internal/test_runner/reporter/spec.js",
|
||||
"lib/internal/test_runner/reporter/tap.js",
|
||||
"lib/internal/test_runner/reporter/v8-serializer.js",
|
||||
"lib/internal/test_runner/runner.js",
|
||||
"lib/internal/test_runner/test.js",
|
||||
"lib/internal/test_runner/tests_stream.js",
|
||||
"lib/internal/test_runner/utils.js",
|
||||
"lib/internal/timers.js",
|
||||
"lib/internal/tls/secure-context.js",
|
||||
"lib/internal/tls/secure-pair.js",
|
||||
"lib/internal/trace_events_async_hooks.js",
|
||||
"lib/internal/tty.js",
|
||||
"lib/internal/url.js",
|
||||
"lib/internal/util.js",
|
||||
"lib/internal/util/colors.js",
|
||||
"lib/internal/util/comparisons.js",
|
||||
"lib/internal/util/debuglog.js",
|
||||
"lib/internal/util/embedding.js",
|
||||
"lib/internal/util/inspect.js",
|
||||
"lib/internal/util/inspector.js",
|
||||
"lib/internal/util/iterable_weak_map.js",
|
||||
"lib/internal/util/parse_args/parse_args.js",
|
||||
"lib/internal/util/parse_args/utils.js",
|
||||
"lib/internal/util/types.js",
|
||||
"lib/internal/v8/startup_snapshot.js",
|
||||
"lib/internal/v8_prof_polyfill.js",
|
||||
"lib/internal/v8_prof_processor.js",
|
||||
"lib/internal/validators.js",
|
||||
"lib/internal/vm.js",
|
||||
"lib/internal/vm/module.js",
|
||||
"lib/internal/wasm_web_api.js",
|
||||
"lib/internal/watch_mode/files_watcher.js",
|
||||
"lib/internal/watchdog.js",
|
||||
"lib/internal/webidl.js",
|
||||
"lib/internal/webstreams/adapters.js",
|
||||
"lib/internal/webstreams/compression.js",
|
||||
"lib/internal/webstreams/encoding.js",
|
||||
"lib/internal/webstreams/queuingstrategies.js",
|
||||
"lib/internal/webstreams/readablestream.js",
|
||||
"lib/internal/webstreams/transfer.js",
|
||||
"lib/internal/webstreams/transformstream.js",
|
||||
"lib/internal/webstreams/util.js",
|
||||
"lib/internal/webstreams/writablestream.js",
|
||||
"lib/internal/worker.js",
|
||||
"lib/internal/worker/io.js",
|
||||
"lib/internal/worker/js_transferable.js",
|
||||
"lib/module.js",
|
||||
"lib/net.js",
|
||||
"lib/os.js",
|
||||
"lib/path.js",
|
||||
"lib/path/posix.js",
|
||||
"lib/path/win32.js",
|
||||
"lib/perf_hooks.js",
|
||||
"lib/process.js",
|
||||
"lib/punycode.js",
|
||||
"lib/querystring.js",
|
||||
"lib/readline.js",
|
||||
"lib/readline/promises.js",
|
||||
"lib/repl.js",
|
||||
"lib/stream.js",
|
||||
"lib/stream/consumers.js",
|
||||
"lib/stream/promises.js",
|
||||
"lib/stream/web.js",
|
||||
"lib/string_decoder.js",
|
||||
"lib/sys.js",
|
||||
"lib/test.js",
|
||||
"lib/test/reporters.js",
|
||||
"lib/timers.js",
|
||||
"lib/timers/promises.js",
|
||||
"lib/tls.js",
|
||||
"lib/trace_events.js",
|
||||
"lib/tty.js",
|
||||
"lib/url.js",
|
||||
"lib/util.js",
|
||||
"lib/util/types.js",
|
||||
"lib/v8.js",
|
||||
"lib/vm.js",
|
||||
"lib/wasi.js",
|
||||
"lib/worker_threads.js",
|
||||
"lib/zlib.js"
|
||||
],
|
||||
"node_module_version": 115,
|
||||
"node_no_browser_globals": "false",
|
||||
"node_prefix": "/",
|
||||
"node_release_urlbase": "https://nodejs.org/download/release/",
|
||||
"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_nghttp3": "false",
|
||||
"node_shared_ngtcp2": "false",
|
||||
"node_shared_openssl": "false",
|
||||
"node_shared_zlib": "false",
|
||||
"node_tag": "",
|
||||
"node_target_type": "executable",
|
||||
"node_use_bundled_v8": "true",
|
||||
"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_is_fips": "false",
|
||||
"openssl_quic": "true",
|
||||
"ossfuzz": "false",
|
||||
"shlib_suffix": "115.dylib",
|
||||
"single_executable_application": "true",
|
||||
"target_arch": "arm64",
|
||||
"v8_enable_31bit_smis_on_64bit_arch": 0,
|
||||
"v8_enable_gdbjit": 0,
|
||||
"v8_enable_hugepage": 0,
|
||||
"v8_enable_i18n_support": 1,
|
||||
"v8_enable_inspector": 1,
|
||||
"v8_enable_javascript_promise_hooks": 1,
|
||||
"v8_enable_lite_mode": 0,
|
||||
"v8_enable_object_print": 1,
|
||||
"v8_enable_pointer_compression": 0,
|
||||
"v8_enable_shared_ro_heap": 1,
|
||||
"v8_enable_webassembly": 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,
|
||||
"want_separate_host_toolset": 0,
|
||||
"xcode_version": "13.0",
|
||||
"nodedir": "/Users/karolsojko/Library/Caches/node-gyp/20.2.0",
|
||||
"standalone_static_library": 1,
|
||||
"user_agent": "yarn/4.0.0-rc.43 npm/? node/v20.2.0 darwin arm64"
|
||||
}
|
||||
}
|
|
@ -1,772 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
# Generated by gyp. Do not edit.
|
||||
# Copyright (c) 2012 Google Inc. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
"""Utility functions to perform Xcode-style build steps.
|
||||
|
||||
These functions are executed via gyp-mac-tool when using the Makefile generator.
|
||||
"""
|
||||
|
||||
|
||||
import fcntl
|
||||
import fnmatch
|
||||
import glob
|
||||
import json
|
||||
import os
|
||||
import plistlib
|
||||
import re
|
||||
import shutil
|
||||
import struct
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
|
||||
def main(args):
|
||||
executor = MacTool()
|
||||
exit_code = executor.Dispatch(args)
|
||||
if exit_code is not None:
|
||||
sys.exit(exit_code)
|
||||
|
||||
|
||||
class MacTool:
|
||||
"""This class performs all the Mac tooling steps. The methods can either be
|
||||
executed directly, or dispatched from an argument list."""
|
||||
|
||||
def Dispatch(self, args):
|
||||
"""Dispatches a string command to a method."""
|
||||
if len(args) < 1:
|
||||
raise Exception("Not enough arguments")
|
||||
|
||||
method = "Exec%s" % self._CommandifyName(args[0])
|
||||
return getattr(self, method)(*args[1:])
|
||||
|
||||
def _CommandifyName(self, name_string):
|
||||
"""Transforms a tool name like copy-info-plist to CopyInfoPlist"""
|
||||
return name_string.title().replace("-", "")
|
||||
|
||||
def ExecCopyBundleResource(self, source, dest, convert_to_binary):
|
||||
"""Copies a resource file to the bundle/Resources directory, performing any
|
||||
necessary compilation on each resource."""
|
||||
convert_to_binary = convert_to_binary == "True"
|
||||
extension = os.path.splitext(source)[1].lower()
|
||||
if os.path.isdir(source):
|
||||
# Copy tree.
|
||||
# TODO(thakis): This copies file attributes like mtime, while the
|
||||
# single-file branch below doesn't. This should probably be changed to
|
||||
# be consistent with the single-file branch.
|
||||
if os.path.exists(dest):
|
||||
shutil.rmtree(dest)
|
||||
shutil.copytree(source, dest)
|
||||
elif extension == ".xib":
|
||||
return self._CopyXIBFile(source, dest)
|
||||
elif extension == ".storyboard":
|
||||
return self._CopyXIBFile(source, dest)
|
||||
elif extension == ".strings" and not convert_to_binary:
|
||||
self._CopyStringsFile(source, dest)
|
||||
else:
|
||||
if os.path.exists(dest):
|
||||
os.unlink(dest)
|
||||
shutil.copy(source, dest)
|
||||
|
||||
if convert_to_binary and extension in (".plist", ".strings"):
|
||||
self._ConvertToBinary(dest)
|
||||
|
||||
def _CopyXIBFile(self, source, dest):
|
||||
"""Compiles a XIB file with ibtool into a binary plist in the bundle."""
|
||||
|
||||
# ibtool sometimes crashes with relative paths. See crbug.com/314728.
|
||||
base = os.path.dirname(os.path.realpath(__file__))
|
||||
if os.path.relpath(source):
|
||||
source = os.path.join(base, source)
|
||||
if os.path.relpath(dest):
|
||||
dest = os.path.join(base, dest)
|
||||
|
||||
args = ["xcrun", "ibtool", "--errors", "--warnings", "--notices"]
|
||||
|
||||
if os.environ["XCODE_VERSION_ACTUAL"] > "0700":
|
||||
args.extend(["--auto-activate-custom-fonts"])
|
||||
if "IPHONEOS_DEPLOYMENT_TARGET" in os.environ:
|
||||
args.extend(
|
||||
[
|
||||
"--target-device",
|
||||
"iphone",
|
||||
"--target-device",
|
||||
"ipad",
|
||||
"--minimum-deployment-target",
|
||||
os.environ["IPHONEOS_DEPLOYMENT_TARGET"],
|
||||
]
|
||||
)
|
||||
else:
|
||||
args.extend(
|
||||
[
|
||||
"--target-device",
|
||||
"mac",
|
||||
"--minimum-deployment-target",
|
||||
os.environ["MACOSX_DEPLOYMENT_TARGET"],
|
||||
]
|
||||
)
|
||||
|
||||
args.extend(
|
||||
["--output-format", "human-readable-text", "--compile", dest, source]
|
||||
)
|
||||
|
||||
ibtool_section_re = re.compile(r"/\*.*\*/")
|
||||
ibtool_re = re.compile(r".*note:.*is clipping its content")
|
||||
try:
|
||||
stdout = subprocess.check_output(args)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(e.output)
|
||||
raise
|
||||
current_section_header = None
|
||||
for line in stdout.splitlines():
|
||||
if ibtool_section_re.match(line):
|
||||
current_section_header = line
|
||||
elif not ibtool_re.match(line):
|
||||
if current_section_header:
|
||||
print(current_section_header)
|
||||
current_section_header = None
|
||||
print(line)
|
||||
return 0
|
||||
|
||||
def _ConvertToBinary(self, dest):
|
||||
subprocess.check_call(
|
||||
["xcrun", "plutil", "-convert", "binary1", "-o", dest, dest]
|
||||
)
|
||||
|
||||
def _CopyStringsFile(self, source, dest):
|
||||
"""Copies a .strings file using iconv to reconvert the input into UTF-16."""
|
||||
input_code = self._DetectInputEncoding(source) or "UTF-8"
|
||||
|
||||
# Xcode's CpyCopyStringsFile / builtin-copyStrings seems to call
|
||||
# CFPropertyListCreateFromXMLData() behind the scenes; at least it prints
|
||||
# CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
|
||||
# semicolon in dictionary.
|
||||
# on invalid files. Do the same kind of validation.
|
||||
import CoreFoundation
|
||||
|
||||
with open(source, "rb") as in_file:
|
||||
s = in_file.read()
|
||||
d = CoreFoundation.CFDataCreate(None, s, len(s))
|
||||
_, error = CoreFoundation.CFPropertyListCreateFromXMLData(None, d, 0, None)
|
||||
if error:
|
||||
return
|
||||
|
||||
with open(dest, "wb") as fp:
|
||||
fp.write(s.decode(input_code).encode("UTF-16"))
|
||||
|
||||
def _DetectInputEncoding(self, file_name):
|
||||
"""Reads the first few bytes from file_name and tries to guess the text
|
||||
encoding. Returns None as a guess if it can't detect it."""
|
||||
with open(file_name, "rb") as fp:
|
||||
try:
|
||||
header = fp.read(3)
|
||||
except Exception:
|
||||
return None
|
||||
if header.startswith(b"\xFE\xFF"):
|
||||
return "UTF-16"
|
||||
elif header.startswith(b"\xFF\xFE"):
|
||||
return "UTF-16"
|
||||
elif header.startswith(b"\xEF\xBB\xBF"):
|
||||
return "UTF-8"
|
||||
else:
|
||||
return None
|
||||
|
||||
def ExecCopyInfoPlist(self, source, dest, convert_to_binary, *keys):
|
||||
"""Copies the |source| Info.plist to the destination directory |dest|."""
|
||||
# Read the source Info.plist into memory.
|
||||
with open(source) as fd:
|
||||
lines = fd.read()
|
||||
|
||||
# Insert synthesized key/value pairs (e.g. BuildMachineOSBuild).
|
||||
plist = plistlib.readPlistFromString(lines)
|
||||
if keys:
|
||||
plist.update(json.loads(keys[0]))
|
||||
lines = plistlib.writePlistToString(plist)
|
||||
|
||||
# Go through all the environment variables and replace them as variables in
|
||||
# the file.
|
||||
IDENT_RE = re.compile(r"[_/\s]")
|
||||
for key in os.environ:
|
||||
if key.startswith("_"):
|
||||
continue
|
||||
evar = "${%s}" % key
|
||||
evalue = os.environ[key]
|
||||
lines = lines.replace(lines, evar, evalue)
|
||||
|
||||
# Xcode supports various suffices on environment variables, which are
|
||||
# all undocumented. :rfc1034identifier is used in the standard project
|
||||
# template these days, and :identifier was used earlier. They are used to
|
||||
# convert non-url characters into things that look like valid urls --
|
||||
# except that the replacement character for :identifier, '_' isn't valid
|
||||
# in a URL either -- oops, hence :rfc1034identifier was born.
|
||||
evar = "${%s:identifier}" % key
|
||||
evalue = IDENT_RE.sub("_", os.environ[key])
|
||||
lines = lines.replace(lines, evar, evalue)
|
||||
|
||||
evar = "${%s:rfc1034identifier}" % key
|
||||
evalue = IDENT_RE.sub("-", os.environ[key])
|
||||
lines = lines.replace(lines, evar, evalue)
|
||||
|
||||
# Remove any keys with values that haven't been replaced.
|
||||
lines = lines.splitlines()
|
||||
for i in range(len(lines)):
|
||||
if lines[i].strip().startswith("<string>${"):
|
||||
lines[i] = None
|
||||
lines[i - 1] = None
|
||||
lines = "\n".join(line for line in lines if line is not None)
|
||||
|
||||
# Write out the file with variables replaced.
|
||||
with open(dest, "w") as fd:
|
||||
fd.write(lines)
|
||||
|
||||
# Now write out PkgInfo file now that the Info.plist file has been
|
||||
# "compiled".
|
||||
self._WritePkgInfo(dest)
|
||||
|
||||
if convert_to_binary == "True":
|
||||
self._ConvertToBinary(dest)
|
||||
|
||||
def _WritePkgInfo(self, info_plist):
|
||||
"""This writes the PkgInfo file from the data stored in Info.plist."""
|
||||
plist = plistlib.readPlist(info_plist)
|
||||
if not plist:
|
||||
return
|
||||
|
||||
# Only create PkgInfo for executable types.
|
||||
package_type = plist["CFBundlePackageType"]
|
||||
if package_type != "APPL":
|
||||
return
|
||||
|
||||
# The format of PkgInfo is eight characters, representing the bundle type
|
||||
# and bundle signature, each four characters. If that is missing, four
|
||||
# '?' characters are used instead.
|
||||
signature_code = plist.get("CFBundleSignature", "????")
|
||||
if len(signature_code) != 4: # Wrong length resets everything, too.
|
||||
signature_code = "?" * 4
|
||||
|
||||
dest = os.path.join(os.path.dirname(info_plist), "PkgInfo")
|
||||
with open(dest, "w") as fp:
|
||||
fp.write(f"{package_type}{signature_code}")
|
||||
|
||||
def ExecFlock(self, lockfile, *cmd_list):
|
||||
"""Emulates the most basic behavior of Linux's flock(1)."""
|
||||
# Rely on exception handling to report errors.
|
||||
fd = os.open(lockfile, os.O_RDONLY | os.O_NOCTTY | os.O_CREAT, 0o666)
|
||||
fcntl.flock(fd, fcntl.LOCK_EX)
|
||||
return subprocess.call(cmd_list)
|
||||
|
||||
def ExecFilterLibtool(self, *cmd_list):
|
||||
"""Calls libtool and filters out '/path/to/libtool: file: foo.o has no
|
||||
symbols'."""
|
||||
libtool_re = re.compile(
|
||||
r"^.*libtool: (?:for architecture: \S* )?" r"file: .* has no symbols$"
|
||||
)
|
||||
libtool_re5 = re.compile(
|
||||
r"^.*libtool: warning for library: "
|
||||
+ r".* the table of contents is empty "
|
||||
+ r"\(no object file members in the library define global symbols\)$"
|
||||
)
|
||||
env = os.environ.copy()
|
||||
# Ref:
|
||||
# http://www.opensource.apple.com/source/cctools/cctools-809/misc/libtool.c
|
||||
# The problem with this flag is that it resets the file mtime on the file to
|
||||
# epoch=0, e.g. 1970-1-1 or 1969-12-31 depending on timezone.
|
||||
env["ZERO_AR_DATE"] = "1"
|
||||
libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE, env=env)
|
||||
err = libtoolout.communicate()[1].decode("utf-8")
|
||||
for line in err.splitlines():
|
||||
if not libtool_re.match(line) and not libtool_re5.match(line):
|
||||
print(line, file=sys.stderr)
|
||||
# Unconditionally touch the output .a file on the command line if present
|
||||
# and the command succeeded. A bit hacky.
|
||||
if not libtoolout.returncode:
|
||||
for i in range(len(cmd_list) - 1):
|
||||
if cmd_list[i] == "-o" and cmd_list[i + 1].endswith(".a"):
|
||||
os.utime(cmd_list[i + 1], None)
|
||||
break
|
||||
return libtoolout.returncode
|
||||
|
||||
def ExecPackageIosFramework(self, framework):
|
||||
# Find the name of the binary based on the part before the ".framework".
|
||||
binary = os.path.basename(framework).split(".")[0]
|
||||
module_path = os.path.join(framework, "Modules")
|
||||
if not os.path.exists(module_path):
|
||||
os.mkdir(module_path)
|
||||
module_template = (
|
||||
"framework module %s {\n"
|
||||
' umbrella header "%s.h"\n'
|
||||
"\n"
|
||||
" export *\n"
|
||||
" module * { export * }\n"
|
||||
"}\n" % (binary, binary)
|
||||
)
|
||||
|
||||
with open(os.path.join(module_path, "module.modulemap"), "w") as module_file:
|
||||
module_file.write(module_template)
|
||||
|
||||
def ExecPackageFramework(self, framework, version):
|
||||
"""Takes a path to Something.framework and the Current version of that and
|
||||
sets up all the symlinks."""
|
||||
# Find the name of the binary based on the part before the ".framework".
|
||||
binary = os.path.basename(framework).split(".")[0]
|
||||
|
||||
CURRENT = "Current"
|
||||
RESOURCES = "Resources"
|
||||
VERSIONS = "Versions"
|
||||
|
||||
if not os.path.exists(os.path.join(framework, VERSIONS, version, binary)):
|
||||
# Binary-less frameworks don't seem to contain symlinks (see e.g.
|
||||
# chromium's out/Debug/org.chromium.Chromium.manifest/ bundle).
|
||||
return
|
||||
|
||||
# Move into the framework directory to set the symlinks correctly.
|
||||
pwd = os.getcwd()
|
||||
os.chdir(framework)
|
||||
|
||||
# Set up the Current version.
|
||||
self._Relink(version, os.path.join(VERSIONS, CURRENT))
|
||||
|
||||
# Set up the root symlinks.
|
||||
self._Relink(os.path.join(VERSIONS, CURRENT, binary), binary)
|
||||
self._Relink(os.path.join(VERSIONS, CURRENT, RESOURCES), RESOURCES)
|
||||
|
||||
# Back to where we were before!
|
||||
os.chdir(pwd)
|
||||
|
||||
def _Relink(self, dest, link):
|
||||
"""Creates a symlink to |dest| named |link|. If |link| already exists,
|
||||
it is overwritten."""
|
||||
if os.path.lexists(link):
|
||||
os.remove(link)
|
||||
os.symlink(dest, link)
|
||||
|
||||
def ExecCompileIosFrameworkHeaderMap(self, out, framework, *all_headers):
|
||||
framework_name = os.path.basename(framework).split(".")[0]
|
||||
all_headers = [os.path.abspath(header) for header in all_headers]
|
||||
filelist = {}
|
||||
for header in all_headers:
|
||||
filename = os.path.basename(header)
|
||||
filelist[filename] = header
|
||||
filelist[os.path.join(framework_name, filename)] = header
|
||||
WriteHmap(out, filelist)
|
||||
|
||||
def ExecCopyIosFrameworkHeaders(self, framework, *copy_headers):
|
||||
header_path = os.path.join(framework, "Headers")
|
||||
if not os.path.exists(header_path):
|
||||
os.makedirs(header_path)
|
||||
for header in copy_headers:
|
||||
shutil.copy(header, os.path.join(header_path, os.path.basename(header)))
|
||||
|
||||
def ExecCompileXcassets(self, keys, *inputs):
|
||||
"""Compiles multiple .xcassets files into a single .car file.
|
||||
|
||||
This invokes 'actool' to compile all the inputs .xcassets files. The
|
||||
|keys| arguments is a json-encoded dictionary of extra arguments to
|
||||
pass to 'actool' when the asset catalogs contains an application icon
|
||||
or a launch image.
|
||||
|
||||
Note that 'actool' does not create the Assets.car file if the asset
|
||||
catalogs does not contains imageset.
|
||||
"""
|
||||
command_line = [
|
||||
"xcrun",
|
||||
"actool",
|
||||
"--output-format",
|
||||
"human-readable-text",
|
||||
"--compress-pngs",
|
||||
"--notices",
|
||||
"--warnings",
|
||||
"--errors",
|
||||
]
|
||||
is_iphone_target = "IPHONEOS_DEPLOYMENT_TARGET" in os.environ
|
||||
if is_iphone_target:
|
||||
platform = os.environ["CONFIGURATION"].split("-")[-1]
|
||||
if platform not in ("iphoneos", "iphonesimulator"):
|
||||
platform = "iphonesimulator"
|
||||
command_line.extend(
|
||||
[
|
||||
"--platform",
|
||||
platform,
|
||||
"--target-device",
|
||||
"iphone",
|
||||
"--target-device",
|
||||
"ipad",
|
||||
"--minimum-deployment-target",
|
||||
os.environ["IPHONEOS_DEPLOYMENT_TARGET"],
|
||||
"--compile",
|
||||
os.path.abspath(os.environ["CONTENTS_FOLDER_PATH"]),
|
||||
]
|
||||
)
|
||||
else:
|
||||
command_line.extend(
|
||||
[
|
||||
"--platform",
|
||||
"macosx",
|
||||
"--target-device",
|
||||
"mac",
|
||||
"--minimum-deployment-target",
|
||||
os.environ["MACOSX_DEPLOYMENT_TARGET"],
|
||||
"--compile",
|
||||
os.path.abspath(os.environ["UNLOCALIZED_RESOURCES_FOLDER_PATH"]),
|
||||
]
|
||||
)
|
||||
if keys:
|
||||
keys = json.loads(keys)
|
||||
for key, value in keys.items():
|
||||
arg_name = "--" + key
|
||||
if isinstance(value, bool):
|
||||
if value:
|
||||
command_line.append(arg_name)
|
||||
elif isinstance(value, list):
|
||||
for v in value:
|
||||
command_line.append(arg_name)
|
||||
command_line.append(str(v))
|
||||
else:
|
||||
command_line.append(arg_name)
|
||||
command_line.append(str(value))
|
||||
# Note: actool crashes if inputs path are relative, so use os.path.abspath
|
||||
# to get absolute path name for inputs.
|
||||
command_line.extend(map(os.path.abspath, inputs))
|
||||
subprocess.check_call(command_line)
|
||||
|
||||
def ExecMergeInfoPlist(self, output, *inputs):
|
||||
"""Merge multiple .plist files into a single .plist file."""
|
||||
merged_plist = {}
|
||||
for path in inputs:
|
||||
plist = self._LoadPlistMaybeBinary(path)
|
||||
self._MergePlist(merged_plist, plist)
|
||||
plistlib.writePlist(merged_plist, output)
|
||||
|
||||
def ExecCodeSignBundle(self, key, entitlements, provisioning, path, preserve):
|
||||
"""Code sign a bundle.
|
||||
|
||||
This function tries to code sign an iOS bundle, following the same
|
||||
algorithm as Xcode:
|
||||
1. pick the provisioning profile that best match the bundle identifier,
|
||||
and copy it into the bundle as embedded.mobileprovision,
|
||||
2. copy Entitlements.plist from user or SDK next to the bundle,
|
||||
3. code sign the bundle.
|
||||
"""
|
||||
substitutions, overrides = self._InstallProvisioningProfile(
|
||||
provisioning, self._GetCFBundleIdentifier()
|
||||
)
|
||||
entitlements_path = self._InstallEntitlements(
|
||||
entitlements, substitutions, overrides
|
||||
)
|
||||
|
||||
args = ["codesign", "--force", "--sign", key]
|
||||
if preserve == "True":
|
||||
args.extend(["--deep", "--preserve-metadata=identifier,entitlements"])
|
||||
else:
|
||||
args.extend(["--entitlements", entitlements_path])
|
||||
args.extend(["--timestamp=none", path])
|
||||
subprocess.check_call(args)
|
||||
|
||||
def _InstallProvisioningProfile(self, profile, bundle_identifier):
|
||||
"""Installs embedded.mobileprovision into the bundle.
|
||||
|
||||
Args:
|
||||
profile: string, optional, short name of the .mobileprovision file
|
||||
to use, if empty or the file is missing, the best file installed
|
||||
will be used
|
||||
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
||||
|
||||
Returns:
|
||||
A tuple containing two dictionary: variables substitutions and values
|
||||
to overrides when generating the entitlements file.
|
||||
"""
|
||||
source_path, provisioning_data, team_id = self._FindProvisioningProfile(
|
||||
profile, bundle_identifier
|
||||
)
|
||||
target_path = os.path.join(
|
||||
os.environ["BUILT_PRODUCTS_DIR"],
|
||||
os.environ["CONTENTS_FOLDER_PATH"],
|
||||
"embedded.mobileprovision",
|
||||
)
|
||||
shutil.copy2(source_path, target_path)
|
||||
substitutions = self._GetSubstitutions(bundle_identifier, team_id + ".")
|
||||
return substitutions, provisioning_data["Entitlements"]
|
||||
|
||||
def _FindProvisioningProfile(self, profile, bundle_identifier):
|
||||
"""Finds the .mobileprovision file to use for signing the bundle.
|
||||
|
||||
Checks all the installed provisioning profiles (or if the user specified
|
||||
the PROVISIONING_PROFILE variable, only consult it) and select the most
|
||||
specific that correspond to the bundle identifier.
|
||||
|
||||
Args:
|
||||
profile: string, optional, short name of the .mobileprovision file
|
||||
to use, if empty or the file is missing, the best file installed
|
||||
will be used
|
||||
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
||||
|
||||
Returns:
|
||||
A tuple of the path to the selected provisioning profile, the data of
|
||||
the embedded plist in the provisioning profile and the team identifier
|
||||
to use for code signing.
|
||||
|
||||
Raises:
|
||||
SystemExit: if no .mobileprovision can be used to sign the bundle.
|
||||
"""
|
||||
profiles_dir = os.path.join(
|
||||
os.environ["HOME"], "Library", "MobileDevice", "Provisioning Profiles"
|
||||
)
|
||||
if not os.path.isdir(profiles_dir):
|
||||
print(
|
||||
"cannot find mobile provisioning for %s" % (bundle_identifier),
|
||||
file=sys.stderr,
|
||||
)
|
||||
sys.exit(1)
|
||||
provisioning_profiles = None
|
||||
if profile:
|
||||
profile_path = os.path.join(profiles_dir, profile + ".mobileprovision")
|
||||
if os.path.exists(profile_path):
|
||||
provisioning_profiles = [profile_path]
|
||||
if not provisioning_profiles:
|
||||
provisioning_profiles = glob.glob(
|
||||
os.path.join(profiles_dir, "*.mobileprovision")
|
||||
)
|
||||
valid_provisioning_profiles = {}
|
||||
for profile_path in provisioning_profiles:
|
||||
profile_data = self._LoadProvisioningProfile(profile_path)
|
||||
app_id_pattern = profile_data.get("Entitlements", {}).get(
|
||||
"application-identifier", ""
|
||||
)
|
||||
for team_identifier in profile_data.get("TeamIdentifier", []):
|
||||
app_id = f"{team_identifier}.{bundle_identifier}"
|
||||
if fnmatch.fnmatch(app_id, app_id_pattern):
|
||||
valid_provisioning_profiles[app_id_pattern] = (
|
||||
profile_path,
|
||||
profile_data,
|
||||
team_identifier,
|
||||
)
|
||||
if not valid_provisioning_profiles:
|
||||
print(
|
||||
"cannot find mobile provisioning for %s" % (bundle_identifier),
|
||||
file=sys.stderr,
|
||||
)
|
||||
sys.exit(1)
|
||||
# If the user has multiple provisioning profiles installed that can be
|
||||
# used for ${bundle_identifier}, pick the most specific one (ie. the
|
||||
# provisioning profile whose pattern is the longest).
|
||||
selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
|
||||
return valid_provisioning_profiles[selected_key]
|
||||
|
||||
def _LoadProvisioningProfile(self, profile_path):
|
||||
"""Extracts the plist embedded in a provisioning profile.
|
||||
|
||||
Args:
|
||||
profile_path: string, path to the .mobileprovision file
|
||||
|
||||
Returns:
|
||||
Content of the plist embedded in the provisioning profile as a dictionary.
|
||||
"""
|
||||
with tempfile.NamedTemporaryFile() as temp:
|
||||
subprocess.check_call(
|
||||
["security", "cms", "-D", "-i", profile_path, "-o", temp.name]
|
||||
)
|
||||
return self._LoadPlistMaybeBinary(temp.name)
|
||||
|
||||
def _MergePlist(self, merged_plist, plist):
|
||||
"""Merge |plist| into |merged_plist|."""
|
||||
for key, value in plist.items():
|
||||
if isinstance(value, dict):
|
||||
merged_value = merged_plist.get(key, {})
|
||||
if isinstance(merged_value, dict):
|
||||
self._MergePlist(merged_value, value)
|
||||
merged_plist[key] = merged_value
|
||||
else:
|
||||
merged_plist[key] = value
|
||||
else:
|
||||
merged_plist[key] = value
|
||||
|
||||
def _LoadPlistMaybeBinary(self, plist_path):
|
||||
"""Loads into a memory a plist possibly encoded in binary format.
|
||||
|
||||
This is a wrapper around plistlib.readPlist that tries to convert the
|
||||
plist to the XML format if it can't be parsed (assuming that it is in
|
||||
the binary format).
|
||||
|
||||
Args:
|
||||
plist_path: string, path to a plist file, in XML or binary format
|
||||
|
||||
Returns:
|
||||
Content of the plist as a dictionary.
|
||||
"""
|
||||
try:
|
||||
# First, try to read the file using plistlib that only supports XML,
|
||||
# and if an exception is raised, convert a temporary copy to XML and
|
||||
# load that copy.
|
||||
return plistlib.readPlist(plist_path)
|
||||
except Exception:
|
||||
pass
|
||||
with tempfile.NamedTemporaryFile() as temp:
|
||||
shutil.copy2(plist_path, temp.name)
|
||||
subprocess.check_call(["plutil", "-convert", "xml1", temp.name])
|
||||
return plistlib.readPlist(temp.name)
|
||||
|
||||
def _GetSubstitutions(self, bundle_identifier, app_identifier_prefix):
|
||||
"""Constructs a dictionary of variable substitutions for Entitlements.plist.
|
||||
|
||||
Args:
|
||||
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
||||
app_identifier_prefix: string, value for AppIdentifierPrefix
|
||||
|
||||
Returns:
|
||||
Dictionary of substitutions to apply when generating Entitlements.plist.
|
||||
"""
|
||||
return {
|
||||
"CFBundleIdentifier": bundle_identifier,
|
||||
"AppIdentifierPrefix": app_identifier_prefix,
|
||||
}
|
||||
|
||||
def _GetCFBundleIdentifier(self):
|
||||
"""Extracts CFBundleIdentifier value from Info.plist in the bundle.
|
||||
|
||||
Returns:
|
||||
Value of CFBundleIdentifier in the Info.plist located in the bundle.
|
||||
"""
|
||||
info_plist_path = os.path.join(
|
||||
os.environ["TARGET_BUILD_DIR"], os.environ["INFOPLIST_PATH"]
|
||||
)
|
||||
info_plist_data = self._LoadPlistMaybeBinary(info_plist_path)
|
||||
return info_plist_data["CFBundleIdentifier"]
|
||||
|
||||
def _InstallEntitlements(self, entitlements, substitutions, overrides):
|
||||
"""Generates and install the ${BundleName}.xcent entitlements file.
|
||||
|
||||
Expands variables "$(variable)" pattern in the source entitlements file,
|
||||
add extra entitlements defined in the .mobileprovision file and the copy
|
||||
the generated plist to "${BundlePath}.xcent".
|
||||
|
||||
Args:
|
||||
entitlements: string, optional, path to the Entitlements.plist template
|
||||
to use, defaults to "${SDKROOT}/Entitlements.plist"
|
||||
substitutions: dictionary, variable substitutions
|
||||
overrides: dictionary, values to add to the entitlements
|
||||
|
||||
Returns:
|
||||
Path to the generated entitlements file.
|
||||
"""
|
||||
source_path = entitlements
|
||||
target_path = os.path.join(
|
||||
os.environ["BUILT_PRODUCTS_DIR"], os.environ["PRODUCT_NAME"] + ".xcent"
|
||||
)
|
||||
if not source_path:
|
||||
source_path = os.path.join(os.environ["SDKROOT"], "Entitlements.plist")
|
||||
shutil.copy2(source_path, target_path)
|
||||
data = self._LoadPlistMaybeBinary(target_path)
|
||||
data = self._ExpandVariables(data, substitutions)
|
||||
if overrides:
|
||||
for key in overrides:
|
||||
if key not in data:
|
||||
data[key] = overrides[key]
|
||||
plistlib.writePlist(data, target_path)
|
||||
return target_path
|
||||
|
||||
def _ExpandVariables(self, data, substitutions):
|
||||
"""Expands variables "$(variable)" in data.
|
||||
|
||||
Args:
|
||||
data: object, can be either string, list or dictionary
|
||||
substitutions: dictionary, variable substitutions to perform
|
||||
|
||||
Returns:
|
||||
Copy of data where each references to "$(variable)" has been replaced
|
||||
by the corresponding value found in substitutions, or left intact if
|
||||
the key was not found.
|
||||
"""
|
||||
if isinstance(data, str):
|
||||
for key, value in substitutions.items():
|
||||
data = data.replace("$(%s)" % key, value)
|
||||
return data
|
||||
if isinstance(data, list):
|
||||
return [self._ExpandVariables(v, substitutions) for v in data]
|
||||
if isinstance(data, dict):
|
||||
return {k: self._ExpandVariables(data[k], substitutions) for k in data}
|
||||
return data
|
||||
|
||||
|
||||
def NextGreaterPowerOf2(x):
|
||||
return 2 ** (x).bit_length()
|
||||
|
||||
|
||||
def WriteHmap(output_name, filelist):
|
||||
"""Generates a header map based on |filelist|.
|
||||
|
||||
Per Mark Mentovai:
|
||||
A header map is structured essentially as a hash table, keyed by names used
|
||||
in #includes, and providing pathnames to the actual files.
|
||||
|
||||
The implementation below and the comment above comes from inspecting:
|
||||
http://www.opensource.apple.com/source/distcc/distcc-2503/distcc_dist/include_server/headermap.py?txt
|
||||
while also looking at the implementation in clang in:
|
||||
https://llvm.org/svn/llvm-project/cfe/trunk/lib/Lex/HeaderMap.cpp
|
||||
"""
|
||||
magic = 1751998832
|
||||
version = 1
|
||||
_reserved = 0
|
||||
count = len(filelist)
|
||||
capacity = NextGreaterPowerOf2(count)
|
||||
strings_offset = 24 + (12 * capacity)
|
||||
max_value_length = max(len(value) for value in filelist.values())
|
||||
|
||||
out = open(output_name, "wb")
|
||||
out.write(
|
||||
struct.pack(
|
||||
"<LHHLLLL",
|
||||
magic,
|
||||
version,
|
||||
_reserved,
|
||||
strings_offset,
|
||||
count,
|
||||
capacity,
|
||||
max_value_length,
|
||||
)
|
||||
)
|
||||
|
||||
# Create empty hashmap buckets.
|
||||
buckets = [None] * capacity
|
||||
for file, path in filelist.items():
|
||||
key = 0
|
||||
for c in file:
|
||||
key += ord(c.lower()) * 13
|
||||
|
||||
# Fill next empty bucket.
|
||||
while buckets[key & capacity - 1] is not None:
|
||||
key = key + 1
|
||||
buckets[key & capacity - 1] = (file, path)
|
||||
|
||||
next_offset = 1
|
||||
for bucket in buckets:
|
||||
if bucket is None:
|
||||
out.write(struct.pack("<LLL", 0, 0, 0))
|
||||
else:
|
||||
(file, path) = bucket
|
||||
key_offset = next_offset
|
||||
prefix_offset = key_offset + len(file) + 1
|
||||
suffix_offset = prefix_offset + len(os.path.dirname(path) + os.sep) + 1
|
||||
next_offset = suffix_offset + len(os.path.basename(path)) + 1
|
||||
out.write(struct.pack("<LLL", key_offset, prefix_offset, suffix_offset))
|
||||
|
||||
# Pad byte since next offset starts at 1.
|
||||
out.write(struct.pack("<x"))
|
||||
|
||||
for bucket in buckets:
|
||||
if bucket is not None:
|
||||
(file, path) = bucket
|
||||
out.write(struct.pack("<%ds" % len(file), file))
|
||||
out.write(struct.pack("<s", "\0"))
|
||||
base = os.path.dirname(path) + os.sep
|
||||
out.write(struct.pack("<%ds" % len(base), base))
|
||||
out.write(struct.pack("<s", "\0"))
|
||||
path = os.path.basename(path)
|
||||
out.write(struct.pack("<%ds" % len(path), path))
|
||||
out.write(struct.pack("<s", "\0"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main(sys.argv[1:]))
|
|
@ -1,196 +0,0 @@
|
|||
# This file is generated by gyp; do not edit.
|
||||
|
||||
TOOLSET := target
|
||||
TARGET := native_metrics
|
||||
DEFS_Debug := \
|
||||
'-DNODE_GYP_MODULE_NAME=native_metrics' \
|
||||
'-DUSING_UV_SHARED=1' \
|
||||
'-DUSING_V8_SHARED=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS' \
|
||||
'-DV8_IMMINENT_DEPRECATION_WARNINGS' \
|
||||
'-D_GLIBCXX_USE_CXX11_ABI=1' \
|
||||
'-D_DARWIN_USE_64_BIT_INODE=1' \
|
||||
'-D_LARGEFILE_SOURCE' \
|
||||
'-D_FILE_OFFSET_BITS=64' \
|
||||
'-DOPENSSL_NO_PINSHARED' \
|
||||
'-DOPENSSL_THREADS' \
|
||||
'-DNOMINMAX' \
|
||||
'-DBUILDING_NODE_EXTENSION' \
|
||||
'-DDEBUG' \
|
||||
'-D_DEBUG' \
|
||||
'-DV8_ENABLE_CHECKS'
|
||||
|
||||
# Flags passed to all source files.
|
||||
CFLAGS_Debug := \
|
||||
-O0 \
|
||||
-gdwarf-2 \
|
||||
-mmacosx-version-min=10.15 \
|
||||
-arch arm64 \
|
||||
-Wall \
|
||||
-Wendif-labels \
|
||||
-W \
|
||||
-Wno-unused-parameter
|
||||
|
||||
# Flags passed to only C files.
|
||||
CFLAGS_C_Debug := \
|
||||
-fno-strict-aliasing
|
||||
|
||||
# Flags passed to only C++ files.
|
||||
CFLAGS_CC_Debug := \
|
||||
-std=gnu++17 \
|
||||
-stdlib=libc++ \
|
||||
-fno-rtti \
|
||||
-fno-exceptions \
|
||||
-fno-strict-aliasing
|
||||
|
||||
# Flags passed to only ObjC files.
|
||||
CFLAGS_OBJC_Debug :=
|
||||
|
||||
# Flags passed to only ObjC++ files.
|
||||
CFLAGS_OBJCC_Debug :=
|
||||
|
||||
INCS_Debug := \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include \
|
||||
-I$(srcdir)/src \
|
||||
-I$(srcdir)/../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan
|
||||
|
||||
DEFS_Release := \
|
||||
'-DNODE_GYP_MODULE_NAME=native_metrics' \
|
||||
'-DUSING_UV_SHARED=1' \
|
||||
'-DUSING_V8_SHARED=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS=1' \
|
||||
'-DV8_DEPRECATION_WARNINGS' \
|
||||
'-DV8_IMMINENT_DEPRECATION_WARNINGS' \
|
||||
'-D_GLIBCXX_USE_CXX11_ABI=1' \
|
||||
'-D_DARWIN_USE_64_BIT_INODE=1' \
|
||||
'-D_LARGEFILE_SOURCE' \
|
||||
'-D_FILE_OFFSET_BITS=64' \
|
||||
'-DOPENSSL_NO_PINSHARED' \
|
||||
'-DOPENSSL_THREADS' \
|
||||
'-DNOMINMAX' \
|
||||
'-DBUILDING_NODE_EXTENSION'
|
||||
|
||||
# Flags passed to all source files.
|
||||
CFLAGS_Release := \
|
||||
-O3 \
|
||||
-gdwarf-2 \
|
||||
-mmacosx-version-min=10.15 \
|
||||
-arch arm64 \
|
||||
-Wall \
|
||||
-Wendif-labels \
|
||||
-W \
|
||||
-Wno-unused-parameter
|
||||
|
||||
# Flags passed to only C files.
|
||||
CFLAGS_C_Release := \
|
||||
-fno-strict-aliasing
|
||||
|
||||
# Flags passed to only C++ files.
|
||||
CFLAGS_CC_Release := \
|
||||
-std=gnu++17 \
|
||||
-stdlib=libc++ \
|
||||
-fno-rtti \
|
||||
-fno-exceptions \
|
||||
-fno-strict-aliasing
|
||||
|
||||
# Flags passed to only ObjC files.
|
||||
CFLAGS_OBJC_Release :=
|
||||
|
||||
# Flags passed to only ObjC++ files.
|
||||
CFLAGS_OBJCC_Release :=
|
||||
|
||||
INCS_Release := \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/include/node \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/src \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/config \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/openssl/openssl/include \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/uv/include \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/zlib \
|
||||
-I/Users/karolsojko/Library/Caches/node-gyp/20.2.0/deps/v8/include \
|
||||
-I$(srcdir)/src \
|
||||
-I$(srcdir)/../../../../nan-npm-2.17.0-bf36a21d6f/node_modules/nan
|
||||
|
||||
OBJS := \
|
||||
$(obj).target/$(TARGET)/src/native_metrics.o \
|
||||
$(obj).target/$(TARGET)/src/GCBinder.o \
|
||||
$(obj).target/$(TARGET)/src/LoopChecker.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))
|
||||
$(OBJS): GYP_OBJCFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))
|
||||
$(OBJS): GYP_OBJCXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))
|
||||
|
||||
# Suffix rules, putting all outputs into $(obj).
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
|
||||
# Try building from generated source, too.
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
|
||||
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
|
||||
@$(call do_cmd,cxx,1)
|
||||
|
||||
# End of this set of suffix rules
|
||||
### Rules for final target.
|
||||
LDFLAGS_Debug := \
|
||||
-undefined dynamic_lookup \
|
||||
-Wl,-search_paths_first \
|
||||
-mmacosx-version-min=10.15 \
|
||||
-arch arm64 \
|
||||
-L$(builddir) \
|
||||
-stdlib=libc++
|
||||
|
||||
LIBTOOLFLAGS_Debug := \
|
||||
-undefined dynamic_lookup \
|
||||
-Wl,-search_paths_first
|
||||
|
||||
LDFLAGS_Release := \
|
||||
-undefined dynamic_lookup \
|
||||
-Wl,-search_paths_first \
|
||||
-mmacosx-version-min=10.15 \
|
||||
-arch arm64 \
|
||||
-L$(builddir) \
|
||||
-stdlib=libc++
|
||||
|
||||
LIBTOOLFLAGS_Release := \
|
||||
-undefined dynamic_lookup \
|
||||
-Wl,-search_paths_first
|
||||
|
||||
LIBS :=
|
||||
|
||||
$(builddir)/native_metrics.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
|
||||
$(builddir)/native_metrics.node: LIBS := $(LIBS)
|
||||
$(builddir)/native_metrics.node: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))
|
||||
$(builddir)/native_metrics.node: TOOLSET := $(TOOLSET)
|
||||
$(builddir)/native_metrics.node: $(OBJS) FORCE_DO_CMD
|
||||
$(call do_cmd,solink_module)
|
||||
|
||||
all_deps += $(builddir)/native_metrics.node
|
||||
# Add target alias
|
||||
.PHONY: native_metrics
|
||||
native_metrics: $(builddir)/native_metrics.node
|
||||
|
||||
# Short alias for building this executable.
|
||||
.PHONY: native_metrics.node
|
||||
native_metrics.node: $(builddir)/native_metrics.node
|
||||
|
||||
# Add executable to "all" target.
|
||||
.PHONY: all
|
||||
all: $(builddir)/native_metrics.node
|
||||
|
|
@ -1 +0,0 @@
|
|||
/opt/homebrew/opt/python@3.11/bin/python3.11
|
|
@ -1,15 +0,0 @@
|
|||
|
||||
# Node Compatibility Notes
|
||||
This document details issues specific to certain versions of node in regards to
|
||||
the native metrics module. It is a living document to be updated as new problems
|
||||
are found.
|
||||
|
||||
### CPU Metrics
|
||||
Our native module relies on the function `uv_getrusage` to measure CPU usage.
|
||||
This function was added to libuv in [version 0.11.20][libuv 0.11.20] which was
|
||||
incorporated into Node in [version 0.11.12][node 0.11.12]. As of the time of
|
||||
this writing, both CPU measurements and loop timing require this function and
|
||||
thus can not be supported on earlier node versions.
|
||||
|
||||
[libuv 0.11.20]: https://github.com/libuv/libuv/releases/tag/v0.11.20
|
||||
[node 0.11.12]: https://github.com/nodejs/node/releases/tag/v0.11.12
|
|
@ -1,184 +0,0 @@
|
|||
/*
|
||||
* Copyright 2021 New Relic Corporation. All rights reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
'use strict'
|
||||
|
||||
const EventEmitter = require('events').EventEmitter
|
||||
const util = require('util')
|
||||
const preBuild = require('./lib/pre-build')
|
||||
const natives = preBuild.load('native_metrics')
|
||||
const semver = require('semver')
|
||||
|
||||
const DEFAULT_TIMEOUT = 15 * 1000 // 15 seconds
|
||||
let GC_TYPE_NAMES = null
|
||||
|
||||
// In Node 18(v8 10) the GCType enum added `MinorMarkCompact`
|
||||
// we have to update our mapping to properly account for this
|
||||
if (semver.satisfies(process.version, '>=18')) {
|
||||
GC_TYPE_NAMES = {
|
||||
1: 'Scavenge',
|
||||
2: 'MinorMarkCompact',
|
||||
4: 'MarkSweepCompact',
|
||||
8: 'IncrementalMarking',
|
||||
16: 'ProcessWeakCallbacks',
|
||||
31: 'All'
|
||||
}
|
||||
} else {
|
||||
GC_TYPE_NAMES = {
|
||||
1: 'Scavenge',
|
||||
2: 'MarkSweepCompact',
|
||||
4: 'IncrementalMarking',
|
||||
8: 'ProcessWeakCallbacks',
|
||||
|
||||
3: 'All', // Node v4 and earlier only have Scavenge and MarkSweepCompact.
|
||||
15: 'All'
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a metric emitter. This constructor is for internal use only.
|
||||
*
|
||||
* {@link NativeMetricEmitter#bind} is called as part of construction.
|
||||
*
|
||||
* @constructor
|
||||
* @classdesc
|
||||
* Emits events for various native events or periodic sampling.
|
||||
*
|
||||
* @param {number} [opts.timeout]
|
||||
* The number of milliseconds between samplings. Defaults to 15 seconds.
|
||||
*/
|
||||
function NativeMetricEmitter(opts) {
|
||||
opts = opts || { timeout: DEFAULT_TIMEOUT }
|
||||
EventEmitter.call(this)
|
||||
this.bound = false
|
||||
this._timeout = null
|
||||
|
||||
this._gcBinder = new natives.GCBinder()
|
||||
this.gcEnabled = true
|
||||
|
||||
this._loopChecker = new natives.LoopChecker()
|
||||
this.loopEnabled = true
|
||||
|
||||
this.bind(opts.timeout)
|
||||
}
|
||||
util.inherits(NativeMetricEmitter, EventEmitter)
|
||||
|
||||
/**
|
||||
* @interface LoopMetrics
|
||||
*
|
||||
* @description
|
||||
* A mapping of loop concepts to metrics about them. All values are in
|
||||
* microseconds.
|
||||
*
|
||||
* @property {Metric} usage - CPU usage per tick metrics.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @interface GCMetrics
|
||||
*
|
||||
* @description
|
||||
* Garbage collection results.
|
||||
*
|
||||
* @property {number} typeId - The numeric ID of the gc type.
|
||||
* @property {string} type - The nice name version of the gc type.
|
||||
* @property {Metric} metrics - Accumulated metric data in milliseconds.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @interface Metric
|
||||
*
|
||||
* @description
|
||||
* A bundle of values taken from some measurement.
|
||||
*
|
||||
* @property {number} total - The sum of all values measured.
|
||||
* @property {number} min - The smallest value measured.
|
||||
* @property {number} max - The largest value measured.
|
||||
* @property {number} sumOfSquares - The sum of the square of each value.
|
||||
* @property {number} count - The number of values measured.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Binds the emitter to the internal, V8 hooks to start populating data.
|
||||
*
|
||||
* @fires NativeMetricEmitter#gc
|
||||
* @fires NativeMetricEmitter#usage
|
||||
*
|
||||
* @param {number} [timeout]
|
||||
* The number of milliseconds between samplings. Defaults to 15 seconds.
|
||||
*/
|
||||
NativeMetricEmitter.prototype.bind = function bind() {
|
||||
if (this.bound) {
|
||||
return
|
||||
}
|
||||
|
||||
this._gcBinder.bind()
|
||||
this._loopChecker.bind()
|
||||
|
||||
this.bound = true
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes internal hooks and stops any open sampling timers.
|
||||
*/
|
||||
NativeMetricEmitter.prototype.unbind = function unbind() {
|
||||
if (!this.bound) {
|
||||
return
|
||||
}
|
||||
|
||||
this._gcBinder.unbind()
|
||||
this._loopChecker.unbind()
|
||||
this.bound = false
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the current loop metrics and resets the counters.
|
||||
*
|
||||
* @return {LoopMetrics} The current loop metrics.
|
||||
*/
|
||||
NativeMetricEmitter.prototype.getLoopMetrics = function getLoopMetrics() {
|
||||
return this._loopChecker.read()
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the accumulated garbage collection metrics.
|
||||
*
|
||||
* After retrieval, the metrics are reset internally. Only GC types that have
|
||||
* happened at least once since the last retrieval are returned.
|
||||
*
|
||||
* @return {object.<string,GCMetrics>} An object mapping GC type names to
|
||||
* information on the GC events that happened.
|
||||
*/
|
||||
NativeMetricEmitter.prototype.getGCMetrics = function getGCMetrics() {
|
||||
const gcMetrics = this._gcBinder.read()
|
||||
const results = Object.create(null)
|
||||
for (const typeId in gcMetrics) {
|
||||
if (gcMetrics.hasOwnProperty(typeId) && gcMetrics[typeId].count > 0) {
|
||||
const typeName = GC_TYPE_NAMES[String(typeId)]
|
||||
results[typeName] = {
|
||||
typeId: parseInt(typeId, 10),
|
||||
type: typeName,
|
||||
metrics: gcMetrics[typeId]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return results
|
||||
}
|
||||
|
||||
let emitter = null
|
||||
|
||||
/**
|
||||
* Retrieves the {@link NativeMetricEmitter} singleton instance.
|
||||
*
|
||||
* @param {object} [opts]
|
||||
* Options for constructing the emitter. See {@link NativeMetricEmitter} for
|
||||
* default values. Only used on the first call to construct the instance.
|
||||
*/
|
||||
module.exports = function getMetricEmitter(opts) {
|
||||
if (!emitter) {
|
||||
emitter = new NativeMetricEmitter(opts)
|
||||
}
|
||||
return emitter
|
||||
}
|
|
@ -1,104 +0,0 @@
|
|||
/*
|
||||
* Copyright 2021 New Relic Corporation. All rights reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
'use strict'
|
||||
const path = require('path')
|
||||
const common = module.exports
|
||||
|
||||
common.PACKAGE_ROOT = path.resolve(__dirname, '..')
|
||||
common.BUILD_PATH = path.resolve(common.PACKAGE_ROOT, './build/Release')
|
||||
common.REMOTE_PATH = process.env.NR_NATIVE_METRICS_REMOTE_PATH || 'nodejs_agent/builds/'
|
||||
|
||||
common.parseArgs = function parseArgs(_argv, _opts) {
|
||||
const args = []
|
||||
for (let i = 0; i < _argv.length; ++i) {
|
||||
if (/^--/.test(_argv[i])) {
|
||||
_opts[_argv[i].substr(2)] = true
|
||||
} else {
|
||||
args.push(_argv[i])
|
||||
}
|
||||
}
|
||||
return args
|
||||
}
|
||||
|
||||
common.logStart = function logStart(cmd) {
|
||||
/* eslint-disable no-console */
|
||||
console.log(
|
||||
[
|
||||
'============================================================================',
|
||||
`Attempting ${cmd} in native-metrics module. Please note that this is an`,
|
||||
'OPTIONAL dependency, and any resultant errors in this process will not',
|
||||
'affect the general performance of the New Relic agent, but event loop and',
|
||||
'garbage collection metrics will not be collected for the Node VMs page.',
|
||||
'============================================================================',
|
||||
''
|
||||
].join('\n')
|
||||
/* eslint-enable no-console */
|
||||
)
|
||||
}
|
||||
|
||||
common.logFinish = function logFinish(cmd, target, err) {
|
||||
/* eslint-disable no-console */
|
||||
if (err) {
|
||||
console.error(`Failed to execute native-metrics ${cmd}: ${err.message}\n`)
|
||||
|
||||
console.error(
|
||||
[
|
||||
'Failed install of this OPTIONAL dependency will not impact the general performance',
|
||||
'of the New Relic Node.js agent. You may safely run in production. Your application',
|
||||
'will be missing event loop and garbage collection metrics for the Node VMs page.',
|
||||
'To capture Node event loop and GC metrics, please resolve issues and reinstall.'
|
||||
].join('\n')
|
||||
)
|
||||
|
||||
// eslint-disable-next-line no-process-exit
|
||||
process.exit(1)
|
||||
} else {
|
||||
console.log(cmd + ' successful: ' + common.getFileName(target))
|
||||
}
|
||||
/* eslint-enable no-console */
|
||||
}
|
||||
|
||||
common.getFileName = function getFileName(target) {
|
||||
const abi = process.versions.modules
|
||||
const arch = process.arch
|
||||
const platform = process.platform
|
||||
const pkg = require('../package')
|
||||
const pkgName = pkg.name.replace(/[^\w]/g, '_')
|
||||
const pkgVersion = pkg.version.toString().replace(/[^\w]/g, '_')
|
||||
|
||||
if (!abi || !arch || !target || !platform || !pkg || !pkgName || !pkgVersion) {
|
||||
throw new Error('Missing information for naming compiled binary.')
|
||||
}
|
||||
|
||||
/**
|
||||
* Electron forks Node and has its own custom ABI versions. Because of this,
|
||||
* the ABI version.included in the binary filename causes issues related to
|
||||
* mismatched Node versions. A quick + temporary fix for this is to strip out
|
||||
* the ABI name for suspected Electron builds. Tools such as `electron-builder`
|
||||
* and `electron-rebuild` will include environment variables to work with
|
||||
* node-gyp. We can look at those env vars to see if they have been patched
|
||||
* to contain the word 'electron'.
|
||||
* For more context: https://github.com/newrelic/node-native-metrics/pull/75
|
||||
* It's worth pointing out that this is a patch and not a solution as this will
|
||||
* have other (minor) repercussions
|
||||
*/
|
||||
if (
|
||||
(process.env.npm_config_runtime || '').includes('electron') ||
|
||||
(process.env.npm_config_disturl || '').includes('electron')
|
||||
) {
|
||||
return [pkgName, pkgVersion, target, platform, arch].join('-')
|
||||
}
|
||||
|
||||
return [pkgName, pkgVersion, target, abi, platform, arch].join('-')
|
||||
}
|
||||
|
||||
common.getPackageFileName = function getPackageFileName(target) {
|
||||
return common.getFileName(target) + '.gz'
|
||||
}
|
||||
|
||||
common.getBinFileName = function getBinFileName(target) {
|
||||
return common.getFileName(target) + '.node'
|
||||
}
|
|
@ -1,353 +0,0 @@
|
|||
/*
|
||||
* Copyright 2020 New Relic Corporation. All rights reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
'use strict'
|
||||
|
||||
// This file is largely based upon the work done for node-pre-gyp. We are not
|
||||
// using that module directly due to issues we've run into with the intricacies
|
||||
// of various node and npm versions that we must support.
|
||||
// https://www.npmjs.com/package/node-pre-gyp
|
||||
|
||||
// XXX This file must not have any deps. This file will run during the install
|
||||
// XXX step of the module and we are _not_ guaranteed that the dependencies have
|
||||
// XXX already installed. Core modules are okay.
|
||||
const cp = require('child_process')
|
||||
const fs = require('fs')
|
||||
const http = require('http')
|
||||
const https = require('https')
|
||||
const os = require('os')
|
||||
const path = require('path')
|
||||
const semver = require('semver')
|
||||
const zlib = require('zlib')
|
||||
const ProxyAgent = require('https-proxy-agent')
|
||||
|
||||
const {
|
||||
getBinFileName,
|
||||
getPackageFileName,
|
||||
parseArgs,
|
||||
logStart,
|
||||
logFinish,
|
||||
PACKAGE_ROOT,
|
||||
BUILD_PATH,
|
||||
REMOTE_PATH
|
||||
} = require('./common')
|
||||
|
||||
const CPU_COUNT = os.cpus().length
|
||||
const IS_WIN = process.platform === 'win32'
|
||||
const DOWNLOAD_HOST =
|
||||
process.env.NR_NATIVE_METRICS_DOWNLOAD_HOST || 'https://download.newrelic.com/'
|
||||
|
||||
const opts = {}
|
||||
exports.load = load
|
||||
exports.executeCli = executeCli
|
||||
|
||||
if (require.main === module) {
|
||||
const [, , cmd, target] = parseArgs(process.argv, opts)
|
||||
executeCli(cmd, target)
|
||||
}
|
||||
|
||||
function load(target) {
|
||||
return require(path.join(BUILD_PATH, getBinFileName(target)))
|
||||
}
|
||||
|
||||
function makePath(pathToMake, cb) {
|
||||
const accessRights = fs.constants.R_OK | fs.constants.W_OK
|
||||
|
||||
// We only want to make the parts after the package directory.
|
||||
pathToMake = path.relative(PACKAGE_ROOT, pathToMake)
|
||||
|
||||
// Now that we have a relative path, split it into the parts we need to make.
|
||||
const pathParts = pathToMake.split(path.sep)
|
||||
_make(-1, PACKAGE_ROOT)
|
||||
|
||||
function _make(i, p) {
|
||||
if (++i >= pathParts.length) {
|
||||
return cb()
|
||||
}
|
||||
p = path.join(p, pathParts[i])
|
||||
|
||||
fs.access(p, accessRights, function fsAccessCB(err) {
|
||||
if (!err) {
|
||||
// It exists and we have read+write access! Move on to the next part.
|
||||
return _make(i, p)
|
||||
} else if (err.code !== 'ENOENT') {
|
||||
// It exists but we don't have read+write access! This is a problem.
|
||||
return cb(new Error('Do not have access to "' + p + '": ' + err))
|
||||
}
|
||||
|
||||
// It probably does not exist, so try to make it.
|
||||
fs.mkdir(p, function fsMkDirCB(mkdirErr) {
|
||||
if (mkdirErr) {
|
||||
return cb(mkdirErr)
|
||||
}
|
||||
_make(i, p)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function findNodeGyp() {
|
||||
// This code heavily borrows from node-pre-gyp.
|
||||
// https://github.com/mapbox/node-pre-gyp/blob/e0b3b6/lib/util/compile.js#L18-L55
|
||||
|
||||
// First, look for it in the NPM environment variable.
|
||||
let gypPath = null
|
||||
if (process.env.npm_config_node_gyp) {
|
||||
try {
|
||||
gypPath = process.env.npm_config_node_gyp
|
||||
fs.accessSync(gypPath)
|
||||
return gypPath
|
||||
} catch (err) {
|
||||
// This method failed, hopefully the next will succeed...
|
||||
}
|
||||
}
|
||||
|
||||
// Next, see if the package is installed somewhere.
|
||||
try {
|
||||
// eslint-disable-next-line node/no-missing-require
|
||||
const gypPkgPath = require.resolve('node-gyp')
|
||||
gypPath = path.resolve(gypPkgPath, '../../bin/node-gyp.js')
|
||||
fs.accessSync(gypPath)
|
||||
return gypPath
|
||||
} catch (err) {
|
||||
// This method failed, hopefully the next will succeed...
|
||||
}
|
||||
|
||||
// Then look for it in NPM's install location.
|
||||
try {
|
||||
// eslint-disable-next-line node/no-missing-require
|
||||
const npmPkgPath = require.resolve('npm')
|
||||
gypPath = path.resolve(npmPkgPath, '../../node_modules/node-gyp/bin/node-gyp.js')
|
||||
fs.accessSync(gypPath)
|
||||
return gypPath
|
||||
} catch (err) {
|
||||
// This method failed, hopefully the next will succeed...
|
||||
}
|
||||
|
||||
// All of that failed, now look for it next to node itself.
|
||||
const nodeNpmPkgPath = path.resolve(process.execPath, '../../lib/node_modules/npm/')
|
||||
gypPath = path.join(nodeNpmPkgPath, 'node_modules/node-gyp/bin/node-gyp.js')
|
||||
try {
|
||||
fs.accessSync(gypPath)
|
||||
return gypPath
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
function gypVersion() {
|
||||
let cmd = null
|
||||
const args = ['-v']
|
||||
const gyp = findNodeGyp()
|
||||
if (gyp) {
|
||||
args.unshift(gyp) // push_front
|
||||
cmd = process.execPath
|
||||
} else {
|
||||
cmd = IS_WIN ? 'node-gyp.cmd' : 'node-gyp'
|
||||
}
|
||||
|
||||
const child = cp.spawnSync(cmd, args)
|
||||
const match = /v(\d+\.\d+\.\d+)/.exec(child.stdout)
|
||||
return match && match[1]
|
||||
}
|
||||
|
||||
function execGyp(args, cb) {
|
||||
let cmd = null
|
||||
const gyp = findNodeGyp()
|
||||
if (gyp) {
|
||||
args.unshift(gyp) // push_front
|
||||
cmd = process.execPath
|
||||
} else {
|
||||
cmd = IS_WIN ? 'node-gyp.cmd' : 'node-gyp'
|
||||
}
|
||||
|
||||
const spawnOpts = {}
|
||||
if (!opts.quiet) {
|
||||
spawnOpts.stdio = [0, 1, 2]
|
||||
}
|
||||
console.log('> ' + cmd + ' ' + args.join(' ')) // eslint-disable-line no-console
|
||||
|
||||
const child = cp.spawn(cmd, args, spawnOpts)
|
||||
child.on('error', cb)
|
||||
child.on('close', function onGypClose(code) {
|
||||
if (code !== 0) {
|
||||
cb(new Error('Command exited with non-zero code: ' + code))
|
||||
} else {
|
||||
cb(null)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function build(target, rebuild, cb) {
|
||||
const HAS_OLD_NODE_GYP_ARGS_FOR_WINDOWS = semver.lt(gypVersion() || '0.0.0', '3.7.0')
|
||||
|
||||
if (IS_WIN && HAS_OLD_NODE_GYP_ARGS_FOR_WINDOWS) {
|
||||
target = '/t:' + target
|
||||
}
|
||||
|
||||
const cmds = rebuild ? ['clean', 'configure'] : ['configure']
|
||||
|
||||
execGyp(cmds, function cleanCb(err) {
|
||||
if (err) {
|
||||
return cb(err)
|
||||
}
|
||||
|
||||
const jobs = Math.round(CPU_COUNT / 2)
|
||||
execGyp(['build', '-j', jobs, target], cb)
|
||||
})
|
||||
}
|
||||
|
||||
function moveBuild(target, cb) {
|
||||
const filePath = path.join(BUILD_PATH, target + '.node')
|
||||
const destination = path.join(BUILD_PATH, getBinFileName(target))
|
||||
fs.rename(filePath, destination, cb)
|
||||
}
|
||||
|
||||
function download(target, cb) {
|
||||
/* eslint-disable no-console */
|
||||
const fileName = getPackageFileName(target)
|
||||
const url = DOWNLOAD_HOST + REMOTE_PATH + fileName
|
||||
let client = null
|
||||
let hasCalledBack = false
|
||||
let options = {}
|
||||
const proxyHost = process.env.NR_NATIVE_METRICS_PROXY_HOST
|
||||
|
||||
if (proxyHost) {
|
||||
const parsedUrl = new URL(DOWNLOAD_HOST)
|
||||
options = parsedUrl
|
||||
options.path = REMOTE_PATH + fileName
|
||||
options.agent = new ProxyAgent(proxyHost)
|
||||
client = /^https:/.test(proxyHost) ? https : http
|
||||
} else {
|
||||
options = url
|
||||
if (DOWNLOAD_HOST.startsWith('https:')) {
|
||||
client = https
|
||||
} else {
|
||||
console.log('Falling back to http, please consider enabling SSL on ' + DOWNLOAD_HOST)
|
||||
client = http
|
||||
}
|
||||
}
|
||||
|
||||
client.get(options, function getFile(res) {
|
||||
if (res.statusCode === 404) {
|
||||
return cb(new Error('No pre-built artifacts to download for your OS/architecture.'))
|
||||
} else if (res.statusCode !== 200) {
|
||||
return cb(new Error('Failed to download ' + url + ': code ' + res.statusCode))
|
||||
}
|
||||
|
||||
const unzip = zlib.createGunzip()
|
||||
const buffers = []
|
||||
let size = 0
|
||||
res.pipe(unzip).on('data', function onResData(data) {
|
||||
buffers.push(data)
|
||||
size += data.length
|
||||
})
|
||||
|
||||
res.on('error', function onResError(err) {
|
||||
if (!hasCalledBack) {
|
||||
hasCalledBack = true
|
||||
cb(new Error('Failed to download ' + url + ': ' + err.message))
|
||||
}
|
||||
})
|
||||
|
||||
unzip.on('error', function onResError(err) {
|
||||
if (!hasCalledBack) {
|
||||
hasCalledBack = true
|
||||
cb(new Error('Failed to unzip ' + url + ': ' + err.message))
|
||||
}
|
||||
})
|
||||
|
||||
unzip.on('end', function onResEnd() {
|
||||
if (hasCalledBack) {
|
||||
return
|
||||
}
|
||||
hasCalledBack = true
|
||||
cb(null, Buffer.concat(buffers, size))
|
||||
})
|
||||
|
||||
res.resume()
|
||||
})
|
||||
/* eslint-enable no-console */
|
||||
}
|
||||
|
||||
function saveDownload(target, data, cb) {
|
||||
makePath(BUILD_PATH, function makePathCB(err) {
|
||||
if (err) {
|
||||
return cb(err)
|
||||
}
|
||||
|
||||
const filePath = path.join(BUILD_PATH, getBinFileName(target))
|
||||
fs.writeFile(filePath, data, cb)
|
||||
})
|
||||
}
|
||||
|
||||
function install(target, cb) {
|
||||
const errors = []
|
||||
|
||||
const noBuild = opts['no-build'] || process.env.NR_NATIVE_METRICS_NO_BUILD
|
||||
const noDownload = opts['no-download'] || process.env.NR_NATIVE_METRICS_NO_DOWNLOAD
|
||||
|
||||
// If NR_NATIVE_METRICS_NO_BUILD env var is specified, jump straight to downloading
|
||||
if (noBuild) {
|
||||
return doDownload()
|
||||
}
|
||||
|
||||
// Otherwise, first attempt to build the package using the source. If that fails, try
|
||||
// downloading the package. If that also fails, whoops!
|
||||
build(target, true, function buildCB(buildErr) {
|
||||
if (!buildErr) {
|
||||
return moveBuild(target, function moveBuildCB(moveErr) {
|
||||
if (moveErr) {
|
||||
errors.push(moveErr)
|
||||
doDownload()
|
||||
} else {
|
||||
doCallback()
|
||||
}
|
||||
})
|
||||
}
|
||||
errors.push(buildErr)
|
||||
|
||||
// Building failed, try downloading.
|
||||
doDownload()
|
||||
})
|
||||
|
||||
function doDownload() {
|
||||
if (noDownload && !noBuild) {
|
||||
return doCallback(new Error('Downloading is disabled.'))
|
||||
}
|
||||
|
||||
download(target, function downloadCB(err, data) {
|
||||
if (err) {
|
||||
return doCallback(err)
|
||||
}
|
||||
|
||||
saveDownload(target, data, doCallback)
|
||||
})
|
||||
}
|
||||
|
||||
function doCallback(err) {
|
||||
if (err) {
|
||||
errors.push(err)
|
||||
cb(err)
|
||||
} else {
|
||||
cb()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function executeCli(cmd, target) {
|
||||
logStart(cmd)
|
||||
if (cmd === 'build' || cmd === 'rebuild') {
|
||||
build(target, cmd === 'rebuild', function buildCb(err) {
|
||||
if (err) {
|
||||
logFinish(cmd, target, err)
|
||||
} else {
|
||||
moveBuild(target, logFinish.bind(this, cmd, target))
|
||||
}
|
||||
})
|
||||
} else if (cmd === 'install') {
|
||||
install(target, logFinish.bind(this, cmd, target))
|
||||
}
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"name": "@newrelic/native-metrics",
|
||||
"version": "9.0.0",
|
||||
"description": "A module for generating metrics from V8.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "node ./lib/pre-build build native_metrics",
|
||||
"clean": "node-gyp clean",
|
||||
"rebuild": "node ./lib/pre-build rebuild native_metrics",
|
||||
"upload": "node ./lib/upload native_metrics",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"unit": "tap --expose-gc --jobs=1 --no-coverage tests/unit/*.tap.js",
|
||||
"integration": "tap --timeout 360000 --jobs=1 --no-coverage tests/integration/*.tap.js",
|
||||
"native": "node tests/native/*.js",
|
||||
"test": "npm run lint && npm run unit && npm run integration",
|
||||
"install": "node ./lib/pre-build.js install native_metrics",
|
||||
"prepare": "husky install",
|
||||
"third-party-updates": "oss third-party manifest && oss third-party notices && git add THIRD_PARTY_NOTICES.md third_party_manifest.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:newrelic/node-native-metrics"
|
||||
},
|
||||
"keywords": [
|
||||
"newrelic",
|
||||
"gc",
|
||||
"metrics",
|
||||
"stats",
|
||||
"gc-stats",
|
||||
"gc stats",
|
||||
"gc metrics",
|
||||
"native-metrics",
|
||||
"native metrics"
|
||||
],
|
||||
"author": "New Relic Node.js agent team <nodejs@newrelic.com>",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Natalie Wolfe",
|
||||
"email": "nwolfe@newrelic.com",
|
||||
"web": "https://newrelic.com"
|
||||
},
|
||||
{
|
||||
"name": "Peter Svetlichny",
|
||||
"email": "psvetlichny@newrelic.com",
|
||||
"web": "https://newrelic.com"
|
||||
},
|
||||
{
|
||||
"name": "Alan Storm",
|
||||
"email": "astorm@newrelic.com",
|
||||
"web": "https://newrelic.com"
|
||||
},
|
||||
{
|
||||
"name": "Bryan Clement",
|
||||
"email": "bclement@newrelic.com",
|
||||
"web": "https://newrelic.com"
|
||||
},
|
||||
{
|
||||
"name": "Michael Goin",
|
||||
"email": "mgoin@newrelic.com",
|
||||
"web": "https://newrelic.com"
|
||||
},
|
||||
{
|
||||
"name": "Nick Tzaperas",
|
||||
"email": "ntzaperas@newrelic.com",
|
||||
"web": "https://newrelic.com"
|
||||
},
|
||||
{
|
||||
"name": "Carlo Pearson",
|
||||
"email": "cpearson@newrelic.com",
|
||||
"web": "https://newrelic.com"
|
||||
}
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=14",
|
||||
"npm": ">=6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@newrelic/eslint-config": "^0.0.4",
|
||||
"@newrelic/newrelic-oss-cli": "^0.1.2",
|
||||
"@newrelic/proxy": "^2.0.0",
|
||||
"async": "^3.2.2",
|
||||
"aws-sdk": "^2.266.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-header": "^3.1.1",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-prettier": "^3.4.0",
|
||||
"husky": "^7.0.1",
|
||||
"lint-staged": "^11.1.1",
|
||||
"nock": "^13.1.1",
|
||||
"prettier": "^2.3.2",
|
||||
"segfault-handler": "^1.3.0",
|
||||
"sinon": "^11.1.2",
|
||||
"tap": "^16.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
"nan": "^2.16.0",
|
||||
"semver": "^5.5.1"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"src/*cpp",
|
||||
"src/*.hpp",
|
||||
"lib/common.js",
|
||||
"lib/pre-build.js",
|
||||
"binding.gyp",
|
||||
"*.md"
|
||||
]
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue