init project

This commit is contained in:
root
2026-07-31 13:12:54 -04:00
parent 0da92d5e02
commit f3863f760c
7215 changed files with 1860260 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
'use strict';
const BuildEnvironment = require('buildcheck');
const be = new BuildEnvironment();
let gyp = {
defines: [],
libraries: [],
sources: [
'deps/cpu_features/include/internal/hwcaps.h',
'deps/cpu_features/src/hwcaps.c',
],
};
be.checkHeader('c', 'dlfcn.h');
if (be.checkDeclared('c', 'getauxval', { headers: ['sys/auxv.h'] }))
gyp.defines.push('HAVE_STRONG_GETAUXVAL=1');
// Add the things we detected
gyp.defines.push(...be.defines(null, true));
gyp.libraries.push(...be.libs());
gyp = {
conditions: [
['OS!="win" and target_arch not in "ia32 x32 x64"',
gyp],
],
};
console.log(JSON.stringify(gyp, null, 2));