How exclude native extension? (SOLVED)

#1

I want to remove defos ne from html build.(i use it only in desktop for debug).
I add it to exlude libs in manifest.But size of my application not changed.
I am doing something wrong? How can i remove it?

 wasm-web:
        context:
            excludeLibs: ["defos","physics","LinearMath","BulletDynamics","BulletCollision","Box2D","record","vpx"]
            excludeJsLibs: []
            excludeSymbols: []
            libs: ["physics_null","record_null"]
            linkFlags: []
0 Likes

#2

Have you measured the size with and without DefOS on HTML5? It should hardly add anything to the size at all.

0 Likes

#3

Yes, I check HTML. I make copy of defos, and remove HTML by hand.
It remove about 10kb=)

0 Likes

#4

Really?! I would actually have expected less. Hmm, let’s check with @JCash if it’s possible to use an app manifest to exclude a native extension for a specific platform.

1 Like

#5

No, you can’t use the app manifest to remove an extension that you added yourself. One solution would be for you to not have DefOS in your game.project file and instead use bob.jar and the --settings option to add DefoS when building and bundling specifically for HML5:

1 Like

#6

Thanks.
I need have defos in game.project because i use it when build from editor.
can i by --settings remove game.project params?

Also having copy of defos without html is much simple=)

0 Likes

#7

Yes, you replace any previous setting.

1 Like