Skip to content

Instantly share code, notes, and snippets.

View danngreen's full-sized avatar

Dan Green danngreen

View GitHub Profile
@danngreen
danngreen / Makefile-compilecommands.mk
Created November 24, 2020 20:45
Makefile command to generate compile_commands.json with entries for c++ headers
# Addresses an issue where language servers won't know what to do with header files
# since compile_commands.json typically only includes .cc/.cpp/.c files.
#
# Include this file from your main Makefile, or just paste the snippet in.
# To use:
# make compile_commands
# Requires bear and compdb
# bear [osx]: brew install bear
# compdb [see https://github.com/Sarcasm/compdb]: pip install compdb
Kicad Building:
First, clone the repo:
$ git clone https://github.com/wayneandlayne/KiCadMacOSPackaging.git
Then
modify compile_kicad.py (set the correct location of OCE.framework-- the origin/master assumes your OSX username is `kicad`)
modify compile_wx.sh (reduce # of cores to 3, add some patches and disable mediactrl),
modify setup.sh (make it install bison, oce, and gettext)
Here's the patch to do all that: