Skip to content

Commit 944abd7

Browse files
committed
Bindgen tests passing, blacklisted max_align_t
rust-lang/rust-bindgen#550
1 parent a67ee8a commit 944abd7

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

ofx-sys/build/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ fn main() {
1111
//println!("Bindings generated at {:?}", bindings_path);
1212
let bindings = bindgen::Builder::default()
1313
.clang_arg("-I../native/openfx/include")
14+
.blacklist_type("max_align_t")
1415
.header("build/wrapper.h")
1516
.generate()
1617
.expect("Unable to generate bindings");

ofx-sys/build/wrapper.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55

66
#include "ofxCore.h"
77
#include "ofxImageEffect.h"
8+
#include "ofxOld.h"
9+
#include "ofxMemory.h"
10+
#include "ofxPixels.h"
11+
#include "ofxParam.h"
12+
#include "ofxProperty.h"
13+
#include "ofxMessage.h"
814
#include "ofxDialog.h"
915
#include "ofxInteract.h"
16+
#include "ofxProgress.h"
1017
#include "ofxKeySyms.h"
11-
#include "ofxMemory.h"
12-
#include "ofxMessage.h"
1318
#include "ofxMultiThread.h"
1419
#include "ofxNatron.h"
15-
#include "ofxOld.h"
1620
#include "ofxOpenGLRender.h"
1721
#include "ofxParametricParam.h"
18-
#include "ofxParam.h"
19-
#include "ofxPixels.h"
20-
#include "ofxProgress.h"
21-
#include "ofxProperty.h"
2222
#include "ofxSonyVegas.h"
2323
#include "ofxTimeLine.h"

ofx-sys/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
66

77
#[cfg(test)]
88
mod tests {
9-
#[test]
10-
fn it_works() {
11-
assert_eq!(2 + 2, 4);
12-
}
13-
}
9+
#[test]
10+
fn it_works() {
11+
assert_eq!(2 + 2, 4);
12+
}
1413

14+
}

0 commit comments

Comments
 (0)