Vs2013增加静态库工程

(基于2.2.2版本,用vs2013编辑代码)
在cocos2dx下有一个external目录,里面有一些要用到的cocos2dx静态库,如Box2D,chipmunk,emscripten,libwebsockets,sqlite3等。但是自己以往积累或第三方其它好用的开源库,想用。如果直接到加到现有的cocos2dx,则会破坏现有Cocos2dx的纯洁性,那只有自己建工程了。
下面图,一步一步显示了创建过程。
第一步:
我这里选择了复制chipmunk这个工程,在external下,建一个目录,叫mylib,然后把chipmunk下的所有文件和子目录复制到mylib下面

然后进入external/mylib/proj.win32,把
    chipmunk.vcxproj ==> mylib.vcxproj
    chipmunk.vcxproj.filters ==> mylib.vcxproj.filters
    chipmunk.vcxproj.user ==> mylib.vcxproj.user

第二步:加到解决方案中


第三步:重命名为mylib

第四步:删除原有的工程文件,包括头文件和源文件

第五步:工程设置
头文件设置


输出就不用设置,因为他是默认为$(OutDir)$(ProjectName).lib
第六步:增加头文件和源文件

然后测试一下生成

其它文件依此类推。放到对应的src目录和include目录就可以了。
第七步:项目中引用
设定包含的头文件目录


添加依赖库

Getting started with WebAssembly & Emscripten March 5, 2019 Video Getting started with WebAssembly & Emscripten English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 2.5 Hours | 687 MB A complete guide for learning the WebAssembly JavaScript API and Emscripten toolset. Learn to create and use WebAssembly Modules from scratch using Emscripten. Bring your skills up to date with the very latest technology in Web Development. This course is suitable for both beginners and experienced developers looking to get started with WebAssembly. Understand what WebAssembly is and how it speeds up the web Use native JavaScript APIs to load and run WebAssembly modules Learn to use Emscripten and compile your own C or C++ code as a WebAssembly module Use WebAssembly in a real-world project and micro benchmark An invaluable skill for any developer looking to future-proof their skills WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other languages. Understanding WebAssembly is an invaluable skill for anyone working with JavaScript or compiled languages, allowing you to bridge the gap between native software development and web-based JavaScript. This course will provide a very practical and concise approach to learning WebAssembly & Emscripten, and will give you a solid base to immediately start creating and implementing fast, optimised WebAssembly modules. Content and Overview This course aims to teach a solid foundational understanding of what WebAssembly is, and why it’s so powerful. Section one starts with an overview of WebAssembly and a detailed setup lesson to help you follow along every step of the way. Section two covers the native JavaScript browser API for loading and running WebAssembly modules. This section also includes importing and exporting functions to and from a WebAssembly module, and shows how to access WebAssemb
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值