This quote is saying that books are important to the speaker. They offer companionship, comfort, and understanding, no matter what emotions they evoke in the speaker. Books can make the speaker feel happy, or they can make them cry. But overall, they give the speaker a meaningful purpose in life.