Auto-generate Node-API bindings from .gir

Which means API changes in frida-core are instantly reflected, with only
customizations needing tweaking, if applicable.

And, since we now target Node-API there will now only be one prebuilt
binary per OS/ABI.

Co-authored-by: Håvard Sørbø <[email protected]>
This commit is contained in:
Ole André Vadla RavnåsandHåvard Sørbø committed 2025-05-08 10:05:20 +02:00
1 parent 4675cf8471
commit e2ffd0aa6c
109 files changed
+8346 -9964

No files matched your search

+5 -4
View File
@@ -1,8 +1,9 @@
const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');
import { execSync } from 'child_process';
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const pkgRoot = path.dirname(path.dirname(__filename));
const pkgRoot = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
const binding = path.join(pkgRoot, 'build', 'frida_binding.node');
if (fs.existsSync(binding)) {
process.exit(0);