On Tuesday, December 29, 2015 at 9:19:32 AM UTC-5, jh...@emocha.com wrote: > > Crypto++ for me is only doing a few things, no parameterized algorithms. I > use some sources, some sinks, and the CFB AES-256 encryption (no > decryption). Is there a way I can start from clean and compile-in only the > subset of classes I need? The library weighs in at 172 megs at last check > for ios. I realize I can strip it down, but according to the docs that only > happens for the final exe. The time to link is measured in minutes, > similarly, pushing to the phone is also very slow. It'd be nice to just > start smaller. >
I missed the "I realize I can strip it down, but according to the docs that only happens for the final exe..." on the ifrst pass. I don't believe its possible out-of-the box. I *think* you can do it, but you will have to turn the knobs by hand. The knob turning will occur around line 275 in the GNUmakefile (https://github.com/weidai11/cryptopp/blob/master/GNUmakefile#L275): SRCS := cryptlib.cpp cpu.cpp $(filter-out cryptlib.cpp cpu.cpp pch.cpp simple.cpp winpipes.cpp cryptlib_bds.cpp,$(wildcard *.cpp)) ... OBJS := $(SRCS:.cpp=.o) After $SRCS is turned into $OBJS, the list trimmed further with: LIBOBJS := $(filter-out $(TESTOBJS),$(OBJS)) So your job is to remove things from either $SRCS or $OBJS. If you remove them from $SRCS, then you remove *.cpp files (e.g., whirlpool.cpp). If you remove them from $OBJS, then you remove *.o files (e.g., whirlpool.o). Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.