awtk/tools/idl_gen/tkc.js
2021-02-04 13:51:45 +08:00

21 lines
659 B
JavaScript

const fs = require('fs');
const path = require('path');
const glob = require('glob')
const IDLGen = require('./idl_gen.js')
let outputIDL = 'tkc.json';
if(process.argv.length == 3) {
outputIDL = process.argv[2];
}
let sourcesPath = [
path.normalize(path.join(__dirname, '../../src/tkc')),
path.normalize(path.join(__dirname, '../../src/ubjson')),
path.normalize(path.join(__dirname, '../../src/csv')),
path.normalize(path.join(__dirname, '../../src/streams')),
path.normalize(path.join(__dirname, '../../src/hal')),
path.normalize(path.join(__dirname, '../../src/conf_io'))].join(';');
IDLGen.gen(sourcesPath, outputIDL)