跨浏览器插件框架FireBreath安装与使用之Mac下的插件

本文指导您如何使用CMake版本2.8.8及以上,从官网下载并安装;Apple的Xcode及命令行工具,确保Mac系统环境配置完善;通过Git下载FireBreath源代码;生成并自定义项目文件,最终成功安装您的FireBreath插件。

 

Requirements

CMake

version 2.8.8 or later, from http://www.cmake.org/cmake/resources/software.html.
Make sure to grab the Binary distribution (cmake-ver-Darwin[64]-universal.dmg).

Apple's Xcode,

available from your Mac App Store.

Xcode's Command-Line Tools.

To get these, first install Xcode. Then launch Xcode and click in the menu: Xcode ▸ Preferences ▸ Downloads. Select "Command Line Tools" and press 'Install'.

Git

Download url:

https://code.google.com/p/git-osx-installer/downloads/list?can=3&q=&sort=-uploaded&colspec=Filename+Summary+Uploaded+Size+DownloadCount

 

Get the source

First thing is to get the source code.

To get a copy of the source, see

http://www.firebreath.org/display/documentation/Download

 

A good video tutorial :

http://www.firebreath.org/display/documentation/Old+Mac+Video+Tutorial

 

Generate and building your own project files

1. cd firebreath-dev

2. git submodule update --init --recursive

3. ./fbgen.py

4. mv projects/ ..

5. cd ..

6. cd projects/
7. cd huobanPlugin(your plugin name)/
8. git init .
9. git add *
10. git commit -m "Initial commit of new plugin"

11. cd ..
12. cd ..
13. ./firebreath-dev/prepmac.sh projects/ build/
14. open build/FireBreath.xcodeproj/   编译工程

 

Installing your plugin
1. cd build/
2. cd projects/
3. cd huobanPlugin/
4. cd Debug/

5. cd ~/Library/Internet Plug-Ins
6. ln -s /Users/huoban/ningxia/build/projects/huobanPlugin/Debug/huoban\ Plugin_x86_64.plugin

7. cd /Users/huoban/ningxia/build/projects/huobanPlugin/Debug/
8. cd ..
9. cd gen/
10. open FBControl.htm

 

 

That's the end.

 

转载于:https://www.cnblogs.com/clovery/p/3921412.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值