Skip to content

Commit

Permalink
Bindgen tests passing, blacklisted max_align_t
Browse files Browse the repository at this point in the history
  • Loading branch information
norru committed Oct 18, 2018
1 parent a67ee8a commit 944abd7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions ofx-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fn main() {
//println!("Bindings generated at {:?}", bindings_path);
let bindings = bindgen::Builder::default()
.clang_arg("-I../native/openfx/include")
.blacklist_type("max_align_t")
.header("build/wrapper.h")
.generate()
.expect("Unable to generate bindings");
Expand Down
14 changes: 7 additions & 7 deletions ofx-sys/build/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@

#include "ofxCore.h"
#include "ofxImageEffect.h"
#include "ofxOld.h"
#include "ofxMemory.h"
#include "ofxPixels.h"
#include "ofxParam.h"
#include "ofxProperty.h"
#include "ofxMessage.h"
#include "ofxDialog.h"
#include "ofxInteract.h"
#include "ofxProgress.h"
#include "ofxKeySyms.h"
#include "ofxMemory.h"
#include "ofxMessage.h"
#include "ofxMultiThread.h"
#include "ofxNatron.h"
#include "ofxOld.h"
#include "ofxOpenGLRender.h"
#include "ofxParametricParam.h"
#include "ofxParam.h"
#include "ofxPixels.h"
#include "ofxProgress.h"
#include "ofxProperty.h"
#include "ofxSonyVegas.h"
#include "ofxTimeLine.h"
10 changes: 5 additions & 5 deletions ofx-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}

}

0 comments on commit 944abd7

Please sign in to comment.