USAGE:
python3 node_bindings.py djinni.yml <namespace> node/node.cpp
yarn
mkdir -p build-node
cd build-node; \
cmake .. -DCMAKE_BUILD_TYPE=Release -DNODE=yes; \
cmake --build . -j
node node/test.js
USAGE:
python3 node_bindings.py djinni.yml <namespace> node/node.cpp
yarn
mkdir -p build-node
cd build-node; \
cmake .. -DCMAKE_BUILD_TYPE=Release -DNODE=yes; \
cmake --build . -j
node node/test.js
| @ECHO OFF | |
| set OLDPATH=%PATH% | |
| call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64 > NUL: | |
| echo export INCLUDE='%INCLUDE%' | |
| echo export LIB='%LIB%' | |
| echo export LIBPATH='%LIBPATH%' |
| import inspect, os, ctypes | |
| class dicttemp: | |
| def __init__(self, obj, changes): | |
| self.obj = obj | |
| self.save = {} | |
| for var, val in changes.items(): | |
| if var in obj: | |
| self.save[var] = obj[var] | |
| else: |
| #!/usr/bin/perl | |
| use strict; | |
| use Getopt::Long qw(:config pass_through no_ignore_case bundling); | |
| my $do_color; | |
| GetOptions("colors"=>\$do_color); | |
| my @buf; |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright 2014 Cilyan Olowen <[email protected]> | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are | |
| # met: | |
| # | |
| # * Redistributions of source code must retain the above copyright |
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |